Mat*_*rym 1 javascript internet-explorer window onload
这在IE中不起作用(尽管它在FFX中有效).为什么?
在标题中使用HTML:
<script type="application/javascript">
// And finally, let's call the code ourselves.
window.onload = lbp.init;
</script>
Run Code Online (Sandbox Code Playgroud)
然后脚本:
// lbp is the script's universal variable, which retains everything
var lbp = {};
// The sequence of functions to trigger
lbp.init = function() {
alert('hi');
}
Run Code Online (Sandbox Code Playgroud)
在此先感谢您的帮助=)
| 归档时间: |
|
| 查看次数: |
2097 次 |
| 最近记录: |