scripting a back button

Associate
Joined
19 Jul 2006
Posts
1,847
I have the following code

<a href="javascript: history.go(-1)">Back</a>

Which works but in IE i get the stupid shield and the
"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer. click here for options.
> allow blocked content.

with out hard coding the links in is there a way of doing the history -1 with out getting the security warnings. This has to be run from a CD .
 
Not everyone is tech savvy enough to know about the browser back button. Sad I know but it's the truth and if you have a page which may not have navigation, there is nothing wrong with a back button.

This works fine for me without messages in IE.
javascript:history.back()
 
You'll get JavaScript errors when running from a local file (i.e. a folder on your Desktop or from a CD), when running from a webserver it's fine.

Could you not just build a list of links users can click on to go back to a specific page instead?
 
Back
Top Bottom