最赞回答 / topband
事件触发,在input标签里面写上onclick="hidetext()",相当于对浏览器说,只要点击button,就触发onclick事情所绑定的hidetext()函数。
2015-05-19
最赞回答 / 成者并非一蹴而就
你这里的_blank. _self是XHTML中a的target属性..1._blank <a href="document.html" target="_blank">my document</a> 浏览器会另开一个新窗口显示document.html文档 2._parent <a href="document.html" target="_parent">my document</a> 指向父fram...
2015-05-19
最赞回答 / feiman
我看到的一种解释是这样的是@Archi丶Reborn回答的,参考一下:getElementById()是根据id属性找到对应的元素,但是它得到的是整个元素,如果你想得到元素里面的东西就要继续添加,比如:var a=document.getElementById("con").innerHTML;document.write(a);
2015-05-19
<script type="text/javascript">
function openWindow(){
var message=confirm();
if(message==true)
window.open('http//www.imooc.com/','_blank','width=400px,height=500px,menubar=no,toolbar=no')
else
{null}
}
</script>
</head>
function openWindow(){
var message=confirm();
if(message==true)
window.open('http//www.imooc.com/','_blank','width=400px,height=500px,menubar=no,toolbar=no')
else
{null}
}
</script>
</head>
已采纳回答 / 菜鸟上路了
他是提供给你隐藏和显示功能,你能够进行切换,比如我们有两个界面,我们希望他们交替出现,就可以第一个界面直接显示出来,第二个把它设置成none,当他触发某些事件,就显示第二个界面,将第一个界面隐藏
2015-05-18