
加载网页后弹出新窗口代码
想在网站上添加一段代码,实现网站加载时弹出新的窗口,代码如下:<styletype="text/javascript">functiontixing(){window.o...
想在网站上添加一段代码,实现网站加载时弹出新的窗口,代码如下:
<style type="text/javascript">
function tixing(){
window.open('alert.html','tixing','height=1000,width=500,toolbar=no,menubar=no,scrollbars=no');
}
</style>
<body onload="javascript:tixing();">
但是网页加载时没什么反应,不知道是什么问题呢? 展开
<style type="text/javascript">
function tixing(){
window.open('alert.html','tixing','height=1000,width=500,toolbar=no,menubar=no,scrollbars=no');
}
</style>
<body onload="javascript:tixing();">
但是网页加载时没什么反应,不知道是什么问题呢? 展开
2个回答
展开全部
<html>
<head>
<script type="text/javascript">
function tixing(){
window.open('http://baidu.com','tixing','height=1000,width=500,toolbar=no,menubar=no,scrollbars=no');
}
</script>
</head>
<body onload="tixing()">
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询