Home  >  Article  >  Web Front-end  >  How to use js on template pages_javascript skills

How to use js on template pages_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:30:54868browse

As shown below:
Code

Copy code The code is as follows:

onkeyup="CheckResume('ctl00_head_txt_title','title')" />(style="color: #CC0000" > 🎜>
The code is as follows:


function CheckResume(_obj1, _obj2) {
//alert(document.getElementById(_obj1).value); if ( document.getElementById(_obj1).value == "") { document.getElementById(_obj2).innerHTML = ""; return false; } else { document.getElementById(_obj2).innerHTML = "";
return true;
}
}


The actual call is as follows
Code




Copy code

The code is as follows :


onkeyup="CheckResume('ctl00_head_txt_title','title')" />        
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn