JavaScript中没载体怎样执行方法? <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>a</title><script type="text/javascript">function quit(){ alert("这意思?");}window.onUnload = quit();</script></head><body></body></html> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个我晓得行,但是如果quit()代码为:{window.location='http://www.126.com';}哪就不行了 <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>a</title><script type="text/javascript">function quit(){ window.location='http://www.163.com';}window.onUnload = quit();</script></head><body></body></html>可以阿 有什么问题 js window.open() 急 在线等~ 图片显示问题 js 能模糊查询码?不能,准确查询也行。 Js将表格转为图片并旋转180度 关于javascript的调试定位 jquery ajax 回调里再调$.load发现的参数问题。求教。请进~~~ 如何根据下拉框选择的内容来决定单选按钮的默认选择? javascript中怎样比较日期 请教:使用JavaScript将特定的字符串写入一个文件,并保存到指定目录 ajax问题解决 如何用JS+FSO读取文件夹路径 求教!关于一些门户网站变黑色风格什么怎么做的?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>a</title><script type="text/javascript">
function quit(){
window.location='http://www.163.com';
}
window.onUnload = quit();
</script>
</head>
<body></body>
</html>可以阿 有什么问题