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

javascript Protocol

Specifies that the URL is JavaScript code.

javascript:sScript

sScript Specifies one or more semicolon-separated JavaScript statements.

Examples

The following sample demonstrates the use of the JavaScript protocol.


<a href="javascript:alert('JavaScript Link!');">
JavaScript Link
</a>


 

 

Show:
© 2015 Microsoft