在我的测试中,JavaScriptreload()
函数似乎阻止了它后面的代码执行......但任何人都可以确认这是真的100%的时间?
假设用户启用了 JavaScript,并且没有花哨的技巧。
That is:
<head>
<!-- Comes first in the <head>, and could be included via an external .js file. -->
<script type="text/javascript">
window.location.reload(true);
</script>
<!-- ... -->
</head>
<body>
<!-- ... -->
<!-- Later in the code. This could be js, html... or anything else. -->
<script type="text/javascript">
alert('this should NEVER display... regardless of OS/browser');
</script>
<!-- ... -->
<span class="you-cant-see-me">secret!</span>
<!-- ... -->
</body>
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)