<body>
<script>
Window.onload=function () {
document.getElementById (' click '). Onclick=function () {
if (document.getElementById (' text '). style.display== ' None ') {
}else{
}
}
}
</script>
<a id= ' click ' href= ' # # # ' > Text Hyperlinks </a>
<input type= ' text ' style= ' display:none; ' id= ' text '/>
</body>
Can I add a button below the text box?
The button and the input box are inside a div.
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; charset={dede:global.cfg_soft_lang/} "/>
<title>bom Object </title>
<body>
<script>
Window.onload=function () {
document.getElementById (' click '). Onclick=function () {
if (document.getElementById (' text '). style.display== ' None ') {
document.getElementById (' text '). style.display= ' block ';
}else{
document.getElementById (' text '). style.display= ' None ';
}
}
}
</script>
<div id= ' text ' style= ' Display:none; ' >
<input type= ' text '/>
<input type= ' Submit ' value= ' submission '/>
</div>
<a id= ' click ' href= ' # # # ' > Text Hyperlinks </a>
</body>
HTML production, click the text hyperlink to display the text box, and then click the text hyperlink hidden text box