HTML production, click the text hyperlink to display the text box, and then click the text hyperlink hidden text box

Source: Internet
Author: User

<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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.