By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,903 Members | 1,677 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,903 IT Pros & Developers. It's quick & easy.

Closing browser(with frame)

P: n/a
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

Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

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

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.