Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Closing a window

Participant ,
Apr 18, 2008 Apr 18, 2008
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.
280
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 18, 2008 Apr 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 18, 2008 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 18, 2008 Apr 18, 2008
LATEST
The target attribute is telling it to open in a new window. Remove the target attribute and it will open in the current window.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources