<!DOCTYPE?html>
<html>
?<head>
??<title>?new?document?</title>??
??<meta?http-equiv="Content-Type"?content="text/html;?charset=gbk"/>???
??<script?type="text/javascript">??
????function?openWindow(){
var?massage=confirm("是否打開新窗口?");
if(massage==true){
????var?url=prompt("通過輸入對(duì)話框確定打開的網(wǎng)址","http://idcbgp.cn");
????if(url!=null){
????????window.open(url,"_blank","width=400,height=500,menubar=no,toolbar=no");
????}else{
????????alert("再見");
????}
}else{
????alert("再見");
}
????}
??</script>?
?</head>?
?<body>?
??<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>?
?</body>
</html>
2016-01-01
2016-01-01
收回上面的回復(fù)?。?!跟那個(gè)沒關(guān)系?。。。?!
2016-01-01
少了jquery的插件。
看下圖