html代码,我要点开链接后弹出一个新的对话框

来源:百度知道 编辑:UC知道 时间:2024/05/18 02:14:45
我要点开链接后弹跳出来新的对话框,不要全屏的,要小的对话框。 谢谢高手了

<a href=# onclick='window.open("http://www.baidu.com","","width=400,height=400")'>弹出</a>

width,height后的数字是宽度和高度

<script>
window.open("http://www.baidu.com")
</script>
分给我吧,大哥啊.

若用记事本的做法:
<a href="网址" target="_blank"</a>