HTML and CSS Reference
In-Depth Information
2.5.3 The JavaScript: URL Protocol
For simple debugging or testing code, you can use the URL pseudoprotocol, JavaScript:
followed by any valid JavaScript expression or expressions separated by semicolons. The
result of the expression is returned as a string to your browser window, as shown in
Example 2.4 and Figures 2.9, 2.10, and 2.11.
JavaScript: expression
JavaScript: 5 + 4
Figure 2.9 Internet Explorer and the JavaScript: protocol.
Figure 2.10 Mozilla Firefox and the JavaScript: protocol.
Figure 2.11 Opera and the JavaScript: protocol.
Search WWH ::

Custom Search