主题:  JAVASCRIPT 代码问题

better

职务:普通成员
等级:1
金币:0.0
发贴:23
注册:2001/5/20 1:29:04
#12001/7/23 13:49:06
请问下面的这个函数是什么意思?
function newwin(url)
{
window.open('http://www.6to23.com/sub/show.html?url=' + url,'','toolbar=1,location=0,directories=0,menubar=1,resizable=1');
}
function newwin2(url)
{
window.open('http://www.6to23.com/sub/show.html?url=http://www.6to23.com' + url,'','toolbar=1,location=0,directories=0,menubar=1,resizable=1');
}

它的调用语句是:
onclick="window.open('http://city.6to23.com/main.asp')"
onclick="window.open('http://city.6to23.com/1/?t=1&bbs=%B1%C8%D1%CC%BB%A8%BC%C5%C4%AF%B5%C4%C8%CB%CA%C7%CE%D2')" 等。



馨竹

职务:普通成员
等级:1
金币:0.0
发贴:107
注册:2000/12/21 11:27:55
#22001/7/24 19:00:21
当鼠标点击时在新的窗口打开指定的链接。