简单的写法:
JS代码里:
window.onload = function()
{
func1();
func2(); //.....
}若是这个onload也不能重载的话那就用 attachEvent()
window.attachEvent("onload", function(){func1(); func2();})
JS代码里:
window.onload = function()
{
func1();
func2(); //.....
}若是这个onload也不能重载的话那就用 attachEvent()
window.attachEvent("onload", function(){func1(); func2();})
解决方案 »
- 点击按钮GET方式发送到指定的文件
- 关于js设置首页的问题,在顶层网页上可以实现,但在其连接的子网页中却没有效果!
- 谁能帮我解释一下
- frame网页取值(在线等!!!!)
- 想做一个类似于任务栏那种效果的DIV,多多指教,谢谢
- 如何用javascript脚本控制框架的拉伸
- 我时个大白菜,懂的很少,来请教大虾指点指点,谢谢先!!!
- 版主帮忙解决一下,我现在所打开的所有帖子都只显示一个页面,一个未格式化的xml页面
- 谁能给我Javascript的帮助文档。能够查询函数的用法。谢谢!
- javascript如何判断复选框是否全部被选中
- 怎样使用户点击IE6的关闭按钮时,将URL设定为指定的URL或者执行一个方法
- iFrame 页面中POST的问题
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function WriteTop(str)
{
document.write(str);
}
</script>
</head>
<body>
(
<script language="javascript" type="text/javascript">
onLoad="WriteTop('123')"
</script>
)
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function WriteTop(str)
{
document.write(str);
}
</script>
</head>
<body>
(
<script language="javascript" type="text/javascript">
WriteTop('123'); //直接调用就是了
</script>
)
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function WriteTop(str)
{
document.write(str);
}
</script>
</head>
<body>
(
<script language="javascript" type="text/javascript" for="window" event="onload">
WriteTop('123');
</script>
)
</body>
</html>