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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Previous Page Javascript

Status
Not open for further replies.

Matteo

Programmer
Mar 7, 2002
43
US
Hey, I recently made a flash program. And I can't figure out how to get my "Go Back" feature to work. I think you have to put javascript into the html, then add javascript.history.go(-1) into get url. But 1.) Im not sure what the java code is. 2.) not sure if that is right.

Here is the link.
Thanks
 
Matteo,

Here is the infamous info from thread250-217367 submitted by OldNewbie himself...


This guy basically uses a hidden frame to allow the browser to record the history I think...

Hope this is what you were referring to. Regards,
TulsaJeff

cd_tektips.gif
 
Bad choice of terms Old... I did not mean "infamous"... I actually meant this subject has become quite "popular" over the last few months and someone should take the time to create a FAQ for it.

What can I say... I was half asleep;-) Regards,
TulsaJeff

cd_tektips.gif
 
Using This, I wouldn't be able to access the user's history, just the history in the flash program itself. I was looking to have someone come to my site, accidently maybe, and go back to the site they came from, like you would from your Back button on Explorer or Netscape. Is that even possible hehe.
 
the suggestion above does in fact use the browser back button and therefore would not be limited to flash but would go all the way back into any sites the user visited previous to yours.

However, now that I see the true application of what you are needing...it appears to me it would be simpler to use javascript:history.back() on a getURL action to send the user back to his previous site.

here is the code that should work on a button in flash:

on (release) {
getURL ("javascript:history.back()");
}
Regards,
TulsaJeff

cd_tektips.gif
 
BTW... you might as well sign up as a member if you're planning on being around;-) Regards,
TulsaJeff

cd_tektips.gif
 
very true indeed..i did independent study in HS with flash 4...I just didn't learn enough :) I really didn't get into the scripting..just tweening and sounds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top