Comment: HTML5 has removed the name attribute. Please use the id when implementing anchor points. There is a good example below that supports Chrome, Firefox, IE8 and other browsers. Newbies can learn it.
HTML5 has removed the name attribute. Please use id when implementing anchor points. The example effect is:Supports Chrome, Firefox, IE8 and above browsers.
Here is the complete code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML5 anchor point example-Ke Leyi</title><base target="_blank" />
<style>
body{margin:0px;}
</style>
</head>
<body>
<div><a href="http://keleyi.com">Keleyi</a> <a href="http://keleyi.com/a/bjac/hwqa4oex.htm">HTML5 Anchor</a> keleyi.com
<script type="text/javascript" src="http://keleyi.com/kineryi/js/gggg728x90a.js"></script></div>
<div><a href="#keleyifot" target="_self">Go to the bottom</a></div>
<div>Please scroll the mouse to make the page down</div>
<div></div>
<div>Welcome</div>
<div>hi</div>
<div>
<a href="http://keleyi.com/dev/94fb5964c80ee829.htm" target="_blank">Green arrow image returns to top effect</a>
<a href="http://keleyi.com/a/bjac/7cc2358ac924ebc5.htm" target="_blank">Blue squares return to top</a>
<a href="http://keleyi.com/a/bjac/6f008786225269ac.htm" target="_blank">Plain text returns to top</a>
<a href="http://keleyi.com/a/bjac/8aa32432160f9aa4.htm" target="_blank">Beautiful return to top, bottom and message</a></div>
<div>keleyi.com</div>
<div>keleyi</div>
<div>keleyi.com</div>
<div>Ke Leyi</div>
<div>Ke Leyi monitors the scrolling pixels</div>
<div>keleyi.com</div>
<div>jquery</div>
<div><a href="http://keleyi.com/a/bjac/f4a6f78d74a251c5.htm" target="_blank">Original text</a></div>
<div>keleyi.com</div>
<div>Full code</div>
<div>HTML5 has removed the name attribute. Please use id when implementing anchor points</div>
<div><a href="#keleyihead" target="_self">Back to top</a></div>
</body>
</html>
Go directly to the bottom of the page example:
#keleyifot