求救!幫忙看一下吧,已經(jīng)不行了
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??
? <script type="text/javascript"> ?
? ? function openWindows(){
? ? var open=confirm("open or not");
if(open==true)
{var url=prompt("is this address?","http;//idcbgp.cn");
if(url !=null)
{window.open(url,"_blank,",'width=600px,height=400px,menubar=no,toolbar=no');
}
else{alert("see you again");
}
else{alert("see you");}
}
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2015-06-30
復(fù)制那么一大蛋子代碼有什么用?把關(guān)鍵地方代碼復(fù)制過來就行了,看著煩
2015-06-29
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
<script type="text/javascript"> ?
? ? function openWindow(){
? ? var open=confirm("open or not");
if(open==true){
var url=prompt("is this address?","http;//idcbgp.cn");
if(url !=null){
window.open(url,"_blank,",'width=600px,height=400px,menubar=no,toolbar=no');
}
else{
alert("see you again");
}
}
else{
alert("see you");
}
}
? </script>?
</head>
<body>
<input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
</body>
</html>
2015-06-29
哥們,工欲善其事,必先利其器!剛學(xué)嗎?HBuilder,給你推薦個(gè)開發(fā)平臺。