Closing browser(with frame)

G

Guest

Hi
Need some advice here..
I have a frame with a hyperlink to logout from the site
When the Logout link (on the left frame) is clicked, a page stating "You've logged out. Please login again" is displayed on the right frame
Inside the right frame, there's a hyperlink "login" that enables user to re-login to the site
when it is clicked, a new browser will be prompted to ask user to login

How do i close the browser(with frame)
Please Help.....-Audrey
 
G

Guest

To automatically close any browser window, prequisite is that the window must've been opened by some other browser window (e.g. window.open). Otherwise it will prompt the user to get the confirmation before closing itself ( using window.close())

Alternatively you can put some "target" attribute in the sign-in link, and then assign the name of the frame to that. This way, new sign in window will not open and the sigh in page will open in the same main frame.

Hope this gives you required direction.

Avnees
MCAD, MCSD.Ne



----- Audrey wrote: ----

Hi
Need some advice here..
I have a frame with a hyperlink to logout from the site
When the Logout link (on the left frame) is clicked, a page stating "You've logged out. Please login again" is displayed on the right frame
Inside the right frame, there's a hyperlink "login" that enables user to re-login to the site
when it is clicked, a new browser will be prompted to ask user to login

How do i close the browser(with frame)
Please Help.....-Audrey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top