function onpenWindow(){
confirm("是否打開新窗口");
if(confirm()==true){
prompt("確認打開的網址"," http://www.xianlaiwan.cn/");
if(prompt()==true){
window.open("prompt.value","_blank,","width=400,height=500,menubar-no,toolbar=no")
}
}
}
confirm("是否打開新窗口");
if(confirm()==true){
prompt("確認打開的網址"," http://www.xianlaiwan.cn/");
if(prompt()==true){
window.open("prompt.value","_blank,","width=400,height=500,menubar-no,toolbar=no")
}
}
}
<script type="text/javescript">
function hidetext(){
varchar=document.getElementById("con");
mychar.style.display="none";
}
function showtext(){
var mychar=document.getElementById("con");
mychar.style.display="block";
}
</script>
function hidetext(){
varchar=document.getElementById("con");
mychar.style.display="none";
}
function showtext(){
var mychar=document.getElementById("con");
mychar.style.display="block";
}
</script>
2016-03-04
<script type="text/javascript">
var mychar="hello world!";
document.getElementById("mychar");
document.write("原標題是"+mychar);
mychar.innerHTML="new text";
document.write("修改后為"+mychar);
</script>
var mychar="hello world!";
document.getElementById("mychar");
document.write("原標題是"+mychar);
mychar.innerHTML="new text";
document.write("修改后為"+mychar);
</script>
2016-03-04
function openWindow()
{var warning=confirm("是否填寫信息");
if(warning==true)
{var add=prompt("輸入網址","http://www.xianlaiwan.cn/");
if(add!=null)
{window.open(add,'_blank','width=400,height=500,menuber=no,toolbar=no');}
else{alert("什么都沒有哦")}}
else{alert("已取消");}
{var warning=confirm("是否填寫信息");
if(warning==true)
{var add=prompt("輸入網址","http://www.xianlaiwan.cn/");
if(add!=null)
{window.open(add,'_blank','width=400,height=500,menuber=no,toolbar=no');}
else{alert("什么都沒有哦")}}
else{alert("已取消");}
prompt("需要提問的問題!",“可修改的答案!”);//這是一個提問的文本輸入確認框!
2016-03-03
//定義"取消設置"的函數
var cancle = function(){
if(confirm("是否確定?")){
document.getElementById("txt").removeAttribute("style");
}
}
var cancle = function(){
if(confirm("是否確定?")){
document.getElementById("txt").removeAttribute("style");
}
}
<script type="text/javascript">
document.write("I");
document.write("love");
document.write("papi醬");
</script>
document.write("I");
document.write("love");
document.write("papi醬");
</script>
2016-03-03
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="tezt/html; charset=utf-8" />
<title>熱身</title>
</head>
<>
<html>
<head>
<meta http-equiv="Content-Type" content="tezt/html; charset=utf-8" />
<title>熱身</title>
</head>
<>
2016-03-03