var origninalContent = document.getElementById('con').innerHTML;
document.write('rusult:' + origninalContent + '<br>');
origninalContent = "Hello World";
document.write('resultChange:' + origninalContent);
document.write('rusult:' + origninalContent + '<br>');
origninalContent = "Hello World";
document.write('resultChange:' + origninalContent);
2019-01-01
之前学 html5 css3都觉得挺简单的 但是我觉得JSP好难啊,看代码就迷糊
2018-12-25
<input type="button" value="点击我" onclick="contxt()" />
2018-12-17
<title>document.write</title>
<script type="text/javascript">
var mystr="我是";
var mychar="JavaScript";
document.write(mystr+"<br>");
document.write(mychar+"的忠实粉丝!")
</script>
</head>
<body>
</body>
</html>
<script type="text/javascript">
var mystr="我是";
var mychar="JavaScript";
document.write(mystr+"<br>");
document.write(mychar+"的忠实粉丝!")
</script>
</head>
<body>
</body>
</html>
2018-12-17
function openWindow() {
var ccc=confirm('是否打开新窗口?');
if(ccc==true) {
var aaa=prompt('请输入网址:','http://www.imooc.com/');
if(aaa!=null) {
window.open(aaa,'_blank','width=400,height=500');
}
}
}
var ccc=confirm('是否打开新窗口?');
if(ccc==true) {
var aaa=prompt('请输入网址:','http://www.imooc.com/');
if(aaa!=null) {
window.open(aaa,'_blank','width=400,height=500');
}
}
}
function openwindow(){
var a1=confirm("打开窗口")
if (a1==true){
var a2=prompt("打开窗口","http://www.jd.com");
if (a2==true){ window.open("http://www.jd.com",'_blank',width=500,height=300,menubar=no,toolbar=no);
}
else{alert("取消了操作")}
}
else{alert("取消了操作")}
}
var a1=confirm("打开窗口")
if (a1==true){
var a2=prompt("打开窗口","http://www.jd.com");
if (a2==true){ window.open("http://www.jd.com",'_blank',width=500,height=300,menubar=no,toolbar=no);
}
else{alert("取消了操作")}
}
else{alert("取消了操作")}
}