[thelist] rollover behaviour

Liam Delahunty liam at megaproducts.co.uk
Tue Feb 10 05:59:33 CST 2004


on 10/02/2004 11:29 john at johnallsopp.co.uk said the following:
> Hi
> 
> This works: <a onClick="history.back(1);" class="dlink">&lt;back</a> but
> the text doesn't rollover properly in IE6 (it does in Moz).
> 
> If I put in an 'href=""' it rolls-over properly but it takes the reader
> back to the home page.

Try combining the two by using a function

<script language="JavaScript">
function myback() {
	history.back(1);
}
</script>

<a href="javascript:myback();" class="dlink">&lt;back</a>

-- 
Kind regards, Liam Delahunty, Mega Products Ltd
12 Bury Place, London WC1A 2JL Fax: +44(0)871 224 7891
http://www.megaproducts.co.uk/ Internet Design & Development


More information about the thelist mailing list