<input type="button" value="改變顏色" onclick="chang(0)" >
<input type="button" value="改變寬高" onclick="chang(1)">
<input type="button" value="隱藏內容" onclick="chang(2)">
<input type="button" value="顯示內容" onclick="chang(3)">
<input type="button" value="取消設置" onclick="chang(4)">
<input type="button" value="改變寬高" onclick="chang(1)">
<input type="button" value="隱藏內容" onclick="chang(2)">
<input type="button" value="顯示內容" onclick="chang(3)">
<input type="button" value="取消設置" onclick="chang(4)">
最贊回答 / qq_慕設計8188320
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> function openwindow(){ var URL = prompt("請輸入你的網址或選擇默認網址", 'https://www.imoo...
2021-09-16
function openWindow(){
var isopen=confirm('是否打開網站');
if(isopen==true){
var url=prompt("輸入網址","http://www.xianlaiwan.cn")
if(url!=null){
window.open(url,'_bank','width=400,height=500,menubar=no,toolbar=no')
}
}
}
var isopen=confirm('是否打開網站');
if(isopen==true){
var url=prompt("輸入網址","http://www.xianlaiwan.cn")
if(url!=null){
window.open(url,'_bank','width=400,height=500,menubar=no,toolbar=no')
}
}
}
已采納回答 / qq_慕用0479397
backgroubdColor記得color中的c要大寫設置寬高都要加px,如width="500px"取消設置用這句就好了document.getElementById('txt').style='none';
2021-09-03