Home  >  Article  >  Web Front-end  >  How to handle JS that cannot pass W3C verification_javascript skills

How to handle JS that cannot pass W3C verification_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:32:551031browse

Here's how:
Add a type attribute to all <script> tags. For example: <script type="text/javascript">. <br>Encapsulate script content in comment statements. For example: <br></p> <div class="codetitle"> <span><a style="CURSOR: pointer" data="84933" class="copybut" id="copybut84933" onclick="doCopy('code84933')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code84933"> <br><script type="text/javascript" ><!-- <BR>...Js code is located here... <BR>//--> <br></script>


Whether it is HTML Still an XHTML page, making these changes will not resolve all validation errors. The script will continue to run normally.
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
Previous article:js code to close browser page silently_javascript skillsNext article:js code to close browser page silently_javascript skills

Related articles

See more