求大神指導(dǎo),為什么我打開網(wǎng)頁之后,地址出錯了,總是顯示 http://yifanck.cn/code/http://yifanck.cn/
<!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 newWindow = confirm("是否打開新窗口");
??? if (newWindow==true)
??? {
??????? var address = prompt ("通過輸入對話框,確定打開的網(wǎng)址","http://yifanck.cn/");
??????? if (address!=null)
??????? {
??????????? window.open(address, '_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>
2017-07-22
你是中文狀態(tài)輸?shù)陌?,實施英文狀態(tài)重輸一遍網(wǎng)址http://yifanck.cn