when i click the link the scroll bar is going top automatically . But it should not move top. how to control that . where i clicked the control should stop there itself and show one dialog box from where it clicked .
Asked
Active
Viewed 37 times
-2
-
1What does clicking a link have to do with jQuery? – David Jan 29 '14 at 12:32
-
Probably you have an "#" as your href and an click event handler on the link? if so remove the click handler. Write href="javascript:yourfunction(); return false;" This is just guessing what you might be doing... – CodeHacker Jan 29 '14 at 12:44
1 Answers
0
Read about page anchors, Google is your friend.
Here's a nice tutorial: http://www.webweaver.nu/html-tips/link-within-a-page.shtml
After that, read this: HTML Anchors with 'name' or 'id'?
And once you decide to really go into it: http://www.w3.org/TR/html401/struct/links.html