Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Content Extensions
Pluggable Protocols
 javascript Protocol
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>
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker