按钮式:
<INPUT name="pclog" type="button" value="/GO" onClick="location.href='http://www.itpx.net/'">
链接式:
<a href="javascript:history.go(-1)">返回上一步</a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>
直接跳转式:
<script>window.location.href='http://www.itpx.net';</script>
开新窗口:
<a href="/javascript:" onClick="window.open('http: //www.itpx.net','','height=500,width=611,scrollbars=yes,status =yes')">培训</a>
本文介绍了几种常见的网页元素交互方式,包括按钮式、链接式、直接跳转式及新开窗口等方法,并提供了具体的HTML代码实现示例。

被折叠的 条评论
为什么被折叠?



