编辑文本后点击显示结果
www.WoYouXian.net 我有闲 IT 教程
<html> <head> <script type="text/javascript"> function removeElement() { document.getElementById("p1").style.display="none"; } </script> </head> <body> <h1>This is a header</h1> <p id="p1">This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text.</p> <input type="button" onclick="removeElement()" value="Do not display paragraph" /> </body> </html>
© 2007-2008 woyouxian.net 版权所有
Contact Us