Clicking ActiveX scripts jumps to top of page


Recommended Posts

With most script links, those which end with "#", the link is coded with the text "return false" which prevents the page from jumping to the top after you click the link. (Im not a coder, I just found this bit of information on some coders website).

Here is an example link from the Neowin forum for those little paperclip icons next to threads with attached photos:

https://www.neowin.net/forum/index.php?showforum=111#

Thats the link, and here is the code for it:

<a href="#" onclick="PopUp('https://www.neowin.net/forum/index.php?act=attach&code=showtopic&tid=538810', 'Attach538810', 500,400); return false;" title="1 attachment(s): View">

Notice the return false. With that the page shouldnt jump to the top.

In my case though, I click those links and my page jumps to the top. Is there anyway to fix this problem?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.