The following content is a repost:
Code
Test environment IE6, IE7, Firefox 3.
Jumps 1 and 2 are invalid in the IE6 environment. 3, 4, and 5 can all pass the test in IE6, IE7, and Firefox3.01.
Jumping to 4 and 5 is the simplest.
The key lies in the href attribute of
. Use "#" and "###" for empty links.
In order not to return to the top of the page.
It is recommended to use "###" for empty links.
I adopted the third method and added return false at the end; in this way, IE6, IE7, and FF3 all passed.