HTML中添加后退、前进、刷新的超链接

<!--
<a href='javascript:history.go(-1)'>后退</a>
<input name='ht' type='button' onclick='javascript:history.go(-1)' value='后退' />
-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后退前进刷新</title>

<script language="javascript">
function next()
{
document.write("<a href='javascript:history.go(-1)'>后退</a>   &nbsp;&nbsp;<a href='javascript:history.go(0)'>刷新</a>&nbsp;&nbsp;<a href='javascript:history.go(1)'>前进</a>   <form>   <input name='ht' type='button' onclick='javascript:history.go(-1)' value='后退' />   <input name='sx' type='button' onclick='javascript:history.go(0)' value='刷新' />   <input name='qj' type='button' onclick='javascript:history.go(1)' value='前进' />   </form> ");
}
</script>
</head>

<body>
<a href="#" onclick="next()">跳到下一页</a>
</body>
</html>

<script></script>

你可能感兴趣的:(html)