A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Pop Up window troubles

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    29

    Pop Up window troubles

    HI there, so here's the thing. I'm using Javascript to close the current window and then open a new window on the release of a button. However when you release the button a little browser message pops up first asking the user if they want to close the current window, before actually opening my pop up window. I need to get rid of the little window that asks the user if they really want to close the current window, is this possible? Here's the Java Script I"m using:

    <SCRIPT LANGUAGE="JavaScript">
    function popup() {
    window.close('svetdeath.htm')
    window.open('minussvet.htm','','toolbar=no,locatio n=no,directories=no,status=no,menubar=no,scrollbar s=no,resizable=no,width=800,height=625,left=0,top= 0');
    }
    </script>

    Thanks

    Amy

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    53
    One way to get rid of it is to make the page you want to close open in a new window. This will of course leave you with the refering page open in the background wich might be just as bad...

  3. #3
    Senior Member Sunnyat's Avatar
    Join Date
    Apr 2002
    Location
    Sydney, Australia
    Posts
    336
    Why use pop-up window...they are realy bad and annoying to some users...avoid pop-ups at all cost unless you are required to use one!

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    29
    yes i'm required to use one, this is for a school project and we are writing a scripted story that requires the user to make some choices between different windows.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center