課程
/前端開發(fā)
/JavaScript
/JavaScript入門篇
點擊后并沒有打開新窗口,為什么
2015-06-02
源自:JavaScript入門篇 2-5
正在回答
是的,分號代表結(jié)束,就是不執(zhí)行了
打不開新窗口、???
<!DOCTYPE html ?PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:html="http://www.w3.org/1999/xhtml" ?xml:lang="zh-CN">
?<head>
? <meta charset="UTF-8">
? <meta name="Generator" content="EditPlus?">
? <meta name="Author" content="">
? <meta name="Keywords" content="">
? <meta name="Description" content="">
? <title></title>
? <script type="text/javascript">
? function ?Wopen(){ window.open('http://www.baidu.com','_blank','width=600','height=400',top=0',left=0')}
? </script>
?</head>
? ? ?<body>
<input name="button" type="button" onClick="Wopen()" value="打開新窗口!" />
? ? ? </body>
</html>
解決了,,,window.open('http://www.baidu.com','_blank','width=600','height=500';)
括號里多了個分號也打不開
代碼放出來,我看一下
舉報
JavaScript做為一名Web工程師的必備技術(shù),本教程讓您快速入門
1 回答為什么點擊打開新窗口沒有反應(yīng)?
2 回答點擊“新窗口打開網(wǎng)站”沒有反應(yīng),為什么?
4 回答為什么點擊新窗口打開網(wǎng)站打不開?
2 回答為什么點擊新窗口打開網(wǎng)站沒反應(yīng)?
1 回答為什么新窗口沒有打開?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2015-07-01
是的,分號代表結(jié)束,就是不執(zhí)行了
2015-06-19
打不開新窗口、???
2015-06-19
<!DOCTYPE html ?PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:html="http://www.w3.org/1999/xhtml" ?xml:lang="zh-CN">
?<head>
? <meta charset="UTF-8">
? <meta name="Generator" content="EditPlus?">
? <meta name="Author" content="">
? <meta name="Keywords" content="">
? <meta name="Description" content="">
? <title></title>
? <script type="text/javascript">
? function ?Wopen(){ window.open('http://www.baidu.com','_blank','width=600','height=400',top=0',left=0')}
? </script>
?</head>
? ? ?<body>
<input name="button" type="button" onClick="Wopen()" value="打開新窗口!" />
? ? ? </body>
</html>
2015-06-05
解決了,,,window.open('http://www.baidu.com','_blank','width=600','height=500';)
括號里多了個分號也打不開
2015-06-03
代碼放出來,我看一下