最新回答 / 阳火锅
你这个判断mymessage=='null'如果想要输入框原封不动,里面的条件就调用一下mymessage变量嘛可以这样写:if( mymessage=='null' ){mymessage}
2018-12-04
已采纳回答 / qq_慕莱坞0589797
<form> <!--当点击相应按钮,执行相应操作,为按钮添加相应事件--> 请注意读这段话 <input type="button" value="改变颜色" > <input type="button" value="改变宽高" > <input type="button" value="隐藏内容" > <input type="button" value="显示内容" > <inpu...
2018-12-04
最新回答 / 慕运维7428119
function resetting() { var v5; v5=confirm("否取消设置?"); if(v5) { v5.style.color="blue"; v5.style.backgroundColor="red"; v5.style.width="400px"; v5.style.height="600px"; v5.style.display="none"; v5.style.display=...
2018-12-04
最新回答 / 慕U师
这是我自己写的function openWindow(){ var open=confirm("是否打开") // 新窗口打开时弹出确认框,是否打开 if(open==true){ window.open('http://www.imooc.com/','_balnk','width=400','height=500','menubar=no','toolbar=no'); } else{ alert("baibai") }
2018-12-03
已采纳回答 / 慕桂英2541989
是的.HTML是结构css是样式 而js可以说是给html加功能有静态的功能动态的功能等等结构搭好了。样式也添加好了。再学功能js其实很容易了
2018-12-03
已采纳回答 / 先思后做万无一失
<!DOCTYPE html><html> <head> <title> new document </title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript"> // 新窗口打开时弹出确认框,是否打开 // 通过输入对话框,确定...
2018-12-03
最新回答 / 慕瓜9309115
var ***=document.getElementById("con"); ***.style.color="red"; ***.style.backgroundColor="green";应该这样改变style叭,写在function下
2018-12-02