function GoBack() {
window.history.go(-1);
}
function GoForward() {
window.history.go(1);
}
window.history.go(-1);
}
function GoForward() {
window.history.go(1);
}
2015-05-24
var mystr="Hello World!"
document.write(mystr.indexOf("o",2)+"<br/>");
alert("然而,并没有什么卵用!!")
document.write(mystr.indexOf("o",2)+"<br/>");
alert("然而,并没有什么卵用!!")
2015-05-24
最新回答 / 喜欢有趣
<...code...> var num1=parseInt(document.getElementById("txt1").value); var num1=parseInt(document.getElementById("txt2").value); var num3=document.getElementById("select").value; var obj; swich(num3){num1改为num2, 然后sw...
2015-05-24
var html;
html=Math.round(Math.random()*10);
document.write(html);
html=Math.round(Math.random()*10);
document.write(html);
2015-05-24
HTML标记(也称为结构),知道了CSS样式(也称为表示),使用JavaScript增加行为,为网页添加动态效果。
JavaScript能做什么?
1.增强页面动态效果(如:下拉菜单、图片轮播、信息滚动等)
2.实现页面与用户之间的实时、动态交互(如:用户注册、登陆验证等)
注意:
1. JS是区分大小写的,如:classname和ClassName是不一样的。同时注意方法、属性、变量等的大小写吆。
2. JS中的字符、符号等一定要在英文状态下输入.
JavaScript能做什么?
1.增强页面动态效果(如:下拉菜单、图片轮播、信息滚动等)
2.实现页面与用户之间的实时、动态交互(如:用户注册、登陆验证等)
注意:
1. JS是区分大小写的,如:classname和ClassName是不一样的。同时注意方法、属性、变量等的大小写吆。
2. JS中的字符、符号等一定要在英文状态下输入.
2015-05-24