HighDots Forums  

page jumps when clicking link

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss page jumps when clicking link in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
-D-
 
Posts: n/a

Default page jumps when clicking link - 11-04-2004 , 03:33 PM






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? Thanks.
-D-

Reply With Quote
  #2  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: page jumps when clicking link - 11-04-2004 , 03:48 PM






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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.