最贊回答 / 毛血旺不辣
?可以把var mychar=document.getElementById("txt");這句可以放在 function changecolor()之前,else可以不用寫或者直接寫上“else;”
2020-07-31
最新回答 / HEML萌新
建議仔細(xì)看一下,Html表單內(nèi)容
最新回答 / weixin_慕的地6242019
?function cancle() {? ? ? ? ? ? var message = confirm("是否取消設(shè)置?");? ? ? ? ? ? if (message == true) {? ? ? ? ? ? ? ? obj.style.color = '';? ? ? ? ? ? ? ? obj.style.width = '';? ? ? ? ? ? ? ? obj.style.height = '';? ? ? ? ? ? ? ? obj.style.display = '';? ? ?...
2020-07-18
最贊回答 / 知安9646545
1.引用函數(shù)方式直接函數(shù)名,不需要要加function;2.任務(wù)內(nèi)的不要菜單和不要工具欄沒(méi)有做;3.第一個(gè)if下面的?retnurn 0;是填來(lái)干嘛的;4.用戶選否后讓用戶輸入想訪問(wèn)的網(wǎng)址后又重新執(zhí)行開頭的問(wèn)題;優(yōu)化后代碼如下:<script type="text/javascript"> function rec() { var mymessage=confirm("確定打開新的窗口?"); ? ? if(mymessage==true) { ? ? ? ?...
2020-07-17
最贊回答 / 慕粉3364548
<!DOCTYPE html><html>?<head>? <title> new document </title>??? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?? <script type="text/javascript">??? ??? ? // 新窗口打開時(shí)彈出確認(rèn)框,是否打開? ? function openWi...
2020-07-15