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

Browser crashes on back button press

Status
Not open for further replies.

pinny

Programmer
Jan 27, 2001
4
GB
I have an index of hyperlinks at the top of my page
which jump to anchors lower in the page.

which works ok.

I then have hyperlinks to other pages and want to click on the back button to take me back to the index page.

when i click on the back button the address is the anchor
#hardware it takes me back to the anchor on the index page
and then closes the browser window

can any one help ??
 
I've had the same problems when using # as a href. To solve this problem I made a function to call instead:

<script>
function doNothing() { return; }
</script>

so instead of using # you should replace them with javascript:doNoting();

(<a href=&quot;javascript:doNothing();&quot;>link</a>)

Hope it works out fine :)
 
I believe that &quot;javascript:void()&quot; does the same thing. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top