Full width home advertisement

Welcome Home

Post Page Advertisement [Top]

Hiding script from older browser can be needed or useful for some older browsers that do not understand JavaScript or VBScript, so that these browsers won’t print the script code as a normal text element. 

If a browser doesn't support JavaScript or VBScript, instead of executing your script, it would display the code to the user as a normal text element. To avoid this, you can simply place the script code inside HTML comments:.

JavaScript Example:

<script type="js/JavaScript">


document.write("Hello JavaScript!");



VBScript Example:

<script type="vbs/vbscript">


document.write("Hello VBScript!")



1 comment:

Bottom Ad [Post Page]