<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>window對(duì)象</title><script type="text/javascript">? ?? ? document.getElementById("btn").onclick = function(){? ? ? ? alert("歡迎來(lái)到慕課網(wǎng)");? ? ? ? window.open('http://idcbgp.cn','_blank','width=600 height=400');? ? }? ??</script></head><body><form><input type="button" value="點(diǎn)擊我,打開(kāi)新窗口" id='btn' ?/></form></body></html>
為什么我的代碼執(zhí)行不了
胖子愛(ài)贊啵
2017-09-26 15:22:24