在html5中阻止页面跳转的脚本怎么写

如题所述

<head>
<!-- 以下方式只是刷新不跳转到其他页面 -->
<meta http-equiv="refresh" content="10">
<!-- 以下方式定时转到其他页面 -->
<meta http-equiv="refresh" content="5;url=hello.html">
</head>

优点:简单
缺点:Struts Tiles中无法使用
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答
大家正在搜