弹出式导航代码
更新时间:2012/9/5 点击:1300次
<SCRIPT LANGUAGE = "JavaScript">
function CreateWindow()
{
msgWindow=window.open("pop_win.html","displayWindow",
"toolbar=no,width=350,height=400,directories=no,
status=no,scrollbars=yes,resize=no,menubar=no")
}
</SCRIPT>
仔细体会一下这段代码,其实就只用到一个window.open函数,是不是很简单呀!你也许会问:那怎么调用这段代码呢?其实你不用着急,下面马上会给出:
<FORM><INPUT TYPE = "button" VALUE = "创建窗口"
onClick = "CreateWindow()"></FORM>