有點不明白?
<!DOCTYPE HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠標移開事件 </title>
<script type="text/javascript">
? function message(){
? ? alert("不要移開,點擊后進行慕課網(wǎng)!"); }
</script>
</head>
<body>
<form>
? <a href="http://idcbgp.cn" onmouseout="message()">點擊我</a>
</form>
</body>
</html>
為什么沒有新開一個窗口打開慕課網(wǎng)的頁面?
為什么會在演示區(qū)出現(xiàn)頁面?
為什么這個的頁面沒有占滿整個窗口?
2015-08-28
在a里加target="_blank"這個屬性,就會新開一個窗口
2015-07-29
默認的就是在當前窗口執(zhí)行,要想跳出當前窗口需要在鏈接里加上屬性target="_top"
2015-07-24
a 就是跳轉頁面的呀