On Thu, 17 Jul 2003 22:14:55 GMT, "Notorious Sharif"
<sharif.TakeThisOut@nyc.rr.com> wrote:
>You know how some links have javascript embedded in them? Like <a
>href="javascript:history.go(-1)"></a>... Would this still work if javascript
>is disabled?
You might want to consider something more like this -
(Qualifier: it's early, I'm on my first cup of joe, and I don't
feel like thinking much):
<a href="someplaceToGo.htm" onClick="history.go(-1);return false">
the link</a>
The onClick will be triggered in most JS capable browsers and will
do the back function. The return false at the end will tell the
browser not to execute the href. Since only 99% of users will get
the JS to run, you need to put a link in the href for the other 1%.
I'm not sure where you want to send them as a default.
Also, keep in mind that this will send them back off your site if
they came in from an external page.
Bob<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Javascript Question