<noscript> tag used to render HTML if JavaScript disabled in browser.
In head:
<html> <head> <script type="text/javascript" src="abc.js"></script> </head> ... <html>
or alternatively just before closing body:
<script src="abc.js"></script> </body> <html>
Note
HTML 5 makes type="text/javascript" unnecessary.
<html> <h1>Hello!<h1/> <script language="javascript"> <!-- alert("Hello!") document.write("sin(10) = " + Math.sin(10)) //--> </script> </html>
JavaScript 1.5 was introduced back in 1999.
console.debug("%o", obj);
To Web Developer console (Firefox/Chrome):
console.log("str"); console.info("str is %s", "str"); console.warn("this is %o", this); console.error("int: %i, float: %f, string: %s, object: %o", 2, .333, "str", this);
To see stack-trace use:
console.trace(); console.log(new Error().stack); // only FF
Powerful, standards-compliant JavaScript XML parser that is designed to help web application designers implement cross platform applications that take advantage of client-side manipulation of XML data. XML for <SCRIPT> provides a full suite of tools, including: