Skip to main content
Inspiring
April 18, 2008
Question

Closing a window

  • April 18, 2008
  • 3 replies
  • 312 views
I use the following in one of my cf pages :

<a
href="email_ notification. cfm?urdn_ number=#url. urdn_number# &coming_from_ screen=view_ urdn"
target="_blank" ><img src="../images/ email.gif"
border="0">< /a>

When the user clicks on the link, it opens a new
window on top of the exisitng one. If they click the x
on the top right, it closes the window.

Is there a function/button that I can place on this
page that will do the same thing ?

Basically, there are too many windows opening ontop of
each other.
    This topic has been closed for replies.

    3 replies

    tclaremont
    Inspiring
    April 18, 2008
    The target attribute is telling it to open in a new window. Remove the target attribute and it will open in the current window.
    Inspiring
    April 18, 2008
    trojnfn wrote:
    >
    > Is there a function/button that I can place on this
    > page that will do the same thing ?


    You can use the JavaScript window.close() command to imbue a control
    with the power to close a window.

    April 18, 2008
    If "there are too many windows opening ontop of each other" then why are you writing the link to open in a new window?