渣王 发表于 2003-3-8 16:24:00

弹出窗口

var newwin = null
//-------------------------------------------------弹出窗口(地址,宽,高)
function newwindow(to,w,h)
{
if (!newwin || newwin.closed)
{
newwin=window.open(to,"indexww","width="+w+",height="+h+",scrollbars")
}
else
{
newwin.close()
newwin=window.open(to,"indexww","width="+w+",height="+h+",scrollbars")
}
newwin.focus()
}
页: [1]
查看完整版本: 弹出窗口