已采納回答 / BBQ7
我復制了你的代碼運行了一下,發(fā)現(xiàn)兩個問題 1、改變寬高后面沒加單位px,加了就有效果。2、back()函數(shù)confirm后面分號是中文的,改成英文就行了
2020-07-23
最新回答 / weixin_慕的地6242019
?function cancle() {? ? ? ? ? ? var message = confirm("是否取消設置?");? ? ? ? ? ? if (message == true) {? ? ? ? ? ? ? ? obj.style.color = '';? ? ? ? ? ? ? ? obj.style.width = '';? ? ? ? ? ? ? ? obj.style.height = '';? ? ? ? ? ? ? ? obj.style.display = '';? ? ?...
2020-07-18
最贊回答 / 知安9646545
1.引用函數(shù)方式直接函數(shù)名,不需要要加function;2.任務內(nèi)的不要菜單和不要工具欄沒有做;3.第一個if下面的?retnurn 0;是填來干嘛的;4.用戶選否后讓用戶輸入想訪問的網(wǎng)址后又重新執(zhí)行開頭的問題;優(yōu)化后代碼如下:<script type="text/javascript"> function rec() { var mymessage=confirm("確定打開新的窗口?"); ? ? if(mymessage==true) { ? ? ? ?...
2020-07-17
已采納回答 / __5yu__
在else里面打個空白就行了if(mywin){? ? ? ? window.open('http://idcbgp.cn','_blank','width=400','height=500','menubar=no','toolbar=no');? ? }else{ };
2020-07-15
最贊回答 / 慕粉3364548
<!DOCTYPE html><html>?<head>? <title> new document </title>??? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?? <script type="text/javascript">??? ??? ? // 新窗口打開時彈出確認框,是否打開? ? function openWi...
2020-07-15