日期:2014-05-16  浏览次数:20323 次

用javascript,想在新窗口中打开网页
谁知道,用javascript,想在新窗口中打开网页/。我现在用的是parent.main.content,其实不是很懂javascript。请教!!谢谢!

------解决方案--------------------
window.open( "urls ")
------解决方案--------------------
parent.frame[name].location.href= "a.asp "
------解决方案--------------------
<input type= "button " name= "button2 " value= "注册 " onclick= "window.open( 'http://www.google.com ') ">

------解决方案--------------------
总结一下:
1 在脚本中要打开新窗口: window.open( "mypage.html ");
2 让用户在页面链接中使用新窗口打开: <a href= "你的新网页.htm " target= "_blank "> this is a test </a>