Script for using the Back button and the Close button


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Script for using the Back button and the Close button
# 1  
Old 09-27-2005
Question Script for 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!
# 2  
Old 09-27-2005
Sorry if I am dumb, but you made me highly confused.

What did you mean by "go back to previous page"? With which method? Note that you can go back with a Javascript "window.history.back()" and also with a submit button whose containing form action is the previous page URL. But the underlying action is totally different.

And I'm even more confused by your saying of "returning to your site". Closing a popup that shows another site? Or use a javascript to trap the onclose event?

And I don't think you can have a single button with a same set of code that someone presses will do one thing while the others will do another provided the code is the same. Unless you generate some dynamic javascript depends on user with CGI or related stuff. Anyway, that doesn't appear to be anywhere intuitive to me.

I'm a Web developer too, but your description really didn't make much sense to me .....
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

Thank You Button is Working on Mobile Now

RE: https://www.unix.com/what-is-on-your-mind-/280775-thanks-button-coming-mobile-soon.html Now, the "Thank You" icon is working on mobile so all registered members can "give thanks" on mobile. Seems to work fine. (2 Replies)
Discussion started by: Neo
2 Replies

2. What is on Your Mind?

Thanks Button Coming to Mobile Soon

FYI... I have the thumbs-up icon and the tooltip for thanking members for their posts displaying in mobile; but I have to change the legacy $.ajax() code in mobile before the button works; but it will be working sooner than later: https://www.unix.com/members/1-albums214-picture1022.jpeg I... (1 Reply)
Discussion started by: Neo
1 Replies

3. Post Here to Contact Site Administrators and Moderators

New Thread Button

Where do I find the New Thread Button so I can post a message to get some help in an issue I am having ? (2 Replies)
Discussion started by: kstalder
2 Replies

4. Shell Programming and Scripting

Launch shell script with parameters from a webpage button

I want to create a simple html page that should contain 2 fields in which the user can write the input. Then I want to have a button that should launch a shell script with the parameters inserted by user in the fields from the webpage. This is the code behind my webpage: <html> <form... (2 Replies)
Discussion started by: black_fender
2 Replies

5. Shell Programming and Scripting

Help to create a Return Button using shell script CGI

Hello Guys, I would like to know how can I create a radio button on that its possible to return to the last page, using a ksh CGI shell script. Can someone help ? Thanks so much !!!:b: I tried this, but it is a javascript code ! <INPUT TYPE="button" VALUE="BACK" ... (2 Replies)
Discussion started by: robdcb
2 Replies

6. Web Development

include virtual perl-script - submit button opens a new page..

hello 2 all I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"--> filename is a name of the file which script is using the script is used for a score show (the number... (3 Replies)
Discussion started by: tip78
3 Replies

7. Shell Programming and Scripting

include virtual perl-script - submit button opens a new page..

hello 2 all I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"--> filename is a name of the file which script is using the script is used for a score show (the number... (0 Replies)
Discussion started by: tip78
0 Replies

8. UNIX for Dummies Questions & Answers

Changing middle mouse button for pasting to right mouse button in cygwin rxvt

Hi, I'm using rxvt in Cygwin and I'm wondering how to change my mouse bindings from the middle button for pasting to the right button. The main reason why I want to do this is because my laptop doesn't have a middle mouse button. Thanks for any help! (2 Replies)
Discussion started by: sayeo
2 Replies

9. Shell Programming and Scripting

need help with html button

Hello everyone, I am trying to implement an html button that will call a script and pass two arguments "perl script.pl website.com 1" this is for a search results page on a php spider called "sphider". the variable $url? is the url and Than needs to be one of the arguments in calling the script.... (0 Replies)
Discussion started by: mike171562
0 Replies
Login or Register to Ask a Question