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...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.