Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

back button

Status
Not open for further replies.

GregLake

Technical User
Feb 2, 2006
18
0
0
PT
I have this button with this code:

on(release){
getURL("javascript:history.go(-1);","_self");
}
Thank you.
I want it to work as a back button. I don't find any error in the code and yet IT ONLY WORKS IF I CLICK THE BUTTON TWICE! More: I have other buttons in the page and if I click once in this back button and click in another button, when I do it it doesn't do what I want but goes back one page! What am I doing wrong?
 
It's just a back button. Not in a film, but in a web page. I solved it like this:


on(press){
getURL("javascript:history.go(-1);","_self");
}
on(release){
getURL("javascript:history.go(-1);","_self");
}

Why can't we work with these things without it making us crazy? Thank you and if you know a more oertodox way of doing this please tell me. If you have the time and the patience you can see it in


It's as much your site and the other friends of tek-tips as is mine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top