On Thu 04 Nov 2004 03:33:15p, -D- wrote in macromedia.dreamweaver:
Quote:
How can I prevent the page from jumping to the top when I click on a
link? Is this the return false fix that is needed or something else? |
There are a few ways you can do null links. One is to use an octothorpe
(#). However, browsers interpret the octothorpe as meaning 'Jump to this
location'. If there's something after it - #mylocation - it jumps there;
if there isn't, or <a name="mylocation></a> doesn't exist on the page, it
jumps to the top of the page.
Change the null links to javascript
:; (the word "javascript" followed by a
colon : and a semicolon

and the problem will go away.