JSF 1.2 Script Component

See Also | Tutorials

The Script  component Script component icon is a standard HTML <script> tag, which can be located in either the <head> tag or the <body> tag. Use the Script component to add JavaScript to your page.

When you drop this component on a page in the Visual Designer, it is inserted into the <head> tag. The component is not rendered on the page, but you can see it under the head1 node in the   If you want the <script> tag in the <body> instead, you can drag the script node in the Navigator window from the head node to the body node.

You can use this tag either to point to a JavaScript file or to specify JavaScript code directly, as described below:

For more information on the HTML <script> tag, see the following W3C web page:

See Also
Script Component Properties window
Working With Components
Component Tasks: Quick Reference
About the Visual Web Palette
Tutorials

Legal Notices