Current location: Hot Scripts Forums » HotScripts.com Discussion » Hot Scripts Forum Questions, Suggestions and Feedback » Using the Back Button and the Close Button


Using the Back Button and the Close Button

Reply
  #1 (permalink)  
Old 09-27-05, 09:11 AM
mdgibson mdgibson is offline
New Member
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Using the Back Button and the Close Button

Here's a question I have for anyone that might be able to help me:

I can write a html script that will allow the user to return to the previous page using the back button, and I can write a script that will allow the user to return to the previous page using the close button, but...is there a script that can be used that would allow the user to do both?

I have a website and some of my visitors want to use the close button to return to my site, while others want to use the back button to return to the previous page...lol Go figure!

Ok...that's it. Hope someone can help me!

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 09-29-05, 01:41 AM
iBold iBold is offline
Wannabe Coder
 
Join Date: Nov 2003
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mdgibson
some of my visitors want to use the close button to return to my site, while others want to use the back button to return to the previous page..
Do you mean they are being taken off your site and want to close the window to 'return to your site'? Just open the link in a new window with the _blank in the <a href> tag.
Alternatively, if you mean you want them to either be able to close the window AND be able to use the back button to return to your site, you could use the _blank to open the new window, and a simple redirect in the new window to the page you need would accomplish this (just open a copy of the original page with a redirect code that takes them there after a second, then the new page will load).
Then they could either close the window or use the back button. Maybe not the most efficient way, but it'll work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html tutoral thefrtman HTML/XHTML/XML 5 04-27-09 11:25 AM


All times are GMT -5. The time now is 11:10 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.