Jump to content

javascript window.closed


lenerd3000

Recommended Posts

function close()

{

        if (schedules.closed)

      {

        //redirect page

      }

        else if (!schedules.closed)

      {

        shedules.close()

        //redirect page

      }

}

 

after i click my button it will call that function that determine if my popup window is open or not and then redirect. my problem is if my window is close, suppose to be it will only redirect but its not... and if my window if open it will close the window then redirect...

Link to comment
Share on other sites

function close()

{

        if (schedules.closed)

      {

        location.href='index.php'

      }

        else if (!schedules.closed)

      {

        schedules.close()

        location.href='index.php'

      }

}

 

my redirection is ok and also the function if schedules.closed will be remove. schedules.close() is working. only the schedules.closed is my problem... tnx for the reply

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.