Re: a href="#" when using base href.

by "Rythmist" <Rythmist(at)gamewood.net>

 Date:  Wed, 27 Sep 2000 02:10:12 -0400
 To:  <jonjab(at)whatsgrowing.com>,
<hwg-languages(at)hwg.org>
 References: 
  todo: View Thread, Original
Hi,

The ideal method is to use:

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

Rythmist

----- Original Message ----- 
From: <jonjab(at)whatsgrowing.com>
To: <hwg-languages(at)hwg.org>
Sent: Wednesday, September 27, 2000 12:35 AM
Subject: a href="#" when using base href.


> here's a problem.
> 
> i'm using a javascript type back button:
> 
> <a href="#" onClick="history.go(-1)>
> 
> to simplify coding on a large site where pages might be linked to from a
> variety of pages.
> 
> i also use a base href to make coding simpler for the people maintaining
> the site, which is a directory inside of a larger site.
> 
> the kicker is that netscape hi-jacks the link and takes the user back to
> the homepage (the "#" is interpreted as the base href instead of the
> current page.
> 
> 
> anything I can do about this?
> Jon Jablonski
> jonjab(at)whatsgrowing.com
> 206-706-3309
> 

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA