Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

javascript Protocol

Specifies that the URL is JavaScript code.

Syntax

javascript:sScript

Tokens

sScript
Specifies one or more semicolon-separated JavaScript statements.

Remarks

Available as of Microsoft Internet Explorer 3.0 or later.

Example

The following sample demonstrates the use of the JavaScript protocol.


<A HREF="javascript:alert('JavaScript Link!');">
JavaScript Link
</A>

Community Additions

Show:
© 2015 Microsoft