难道window.open不支持变量变量传递吗
chcpu 2005-05-20 08:46:22
response.write "<p><A href='#' onclick=window.open('../../inbornweb/demo.htm','new','height=500,width=580)>◆"& title1 &"……</A></p>" (正确)
这一句是静态一个页面,没有问题,下面一句将demo换成一个变量title0问题就来了,难道open不支持变量传递吗,有什么办法解决?
response.write "<p><A href='#' onclick=window.open('../../inbornweb/"& title0 &".htm','newwindow','height=500,width=580)>◆"& title1 &"……</A></p>" (错误)
因为下面这个语句是正确的,而我想重新弹出一个固定大小的窗口呀
response.write "<p><A href=window.open('../../inbornweb/"& title0 &".htm')>◆"& title1 &"……</A></p>" (正确)