<head>
</head>
<body>
<input name="button" type="button" onclick="rec()"value="ddsiwoba,huiyoujingxide"/>
</body>
</head>
<body>
<input name="button" type="button" onclick="rec()"value="ddsiwoba,huiyoujingxide"/>
</body>
2016-01-09
<html>
<head>
<title>hello,world</title>
<script type="text/javascript>
var mychar="hello.world";
document.write(mychar+“<br>”)
</script>
<head>
<title>hello,world</title>
<script type="text/javascript>
var mychar="hello.world";
document.write(mychar+“<br>”)
</script>
2016-01-09
最新回答 / qq_遠遠的欣賞_0
我认为mouseInsub是多余的,('#test').on('mouseenter','li',function(e){})里面,mouseInsub一直都是false,没必要定义这个变量
2016-01-08
已采纳回答 / Perona
首先了解下语法:window.open([URL], [窗口名称], [参数字符串])这里的参数字符串是一个整体,用引号包裹起来,里面的参数是可选的,可以不写。但是独立开就错了。
2016-01-08
已采纳回答 / sugelalin
Q1:在</script>上面还有个add2(); 这个是什么意思?A1:这是你自己定义的一个Javascript函数,这个函数的意思就是sum=5+6,然后弹出这个sum值。Q2:在这题里把contxt();写在</script>前面,按下键盘就会弹出窗口呢?A2:弹出窗口是因为你在html代码里的button按钮上面绑定了onclick方法(这个方法是,点击按钮就调用coclick(XXX())的这个XXX()函数,也就是前面定义的contxt()函数)
2016-01-08
已采纳回答 / Perona
不能够呀,是不是弹出对话框的时候没有输入http://。直接输入网址。需要注意一点,现在的浏览器输入框都做过处理。所以前面没输入http://也可以链接到正确的网站的。但是这里的js用的是原始的,需要加上超文本传输协议。超文本传输协议就是http://。你试试看。
2016-01-07