Results 1 to 2 of 2

Thread: CGI/Javascript conflict

  1. #1
    Join Date
    Feb 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CGI/Javascript conflict

    Hi, I have a cgi form script that is supposed to forward the user to a thank you page. At the bottom of the page, I put in a simple javascript:window.close() to exit the window. The problem is that the javascript works fine on it's own, but if the page is forwarded to from the cgi script, the javascript will not work. Is this a common conflict? How is it resolved?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm not sure of the particulars here or if this would apply but, javascript cannot close a window that wasn't opened using javascript. If this is the case, it wouldn't simply not work though, there would be a confirmation dialogue box asking if you want to allow the window to close.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •