XUL:script
From MDC
« XUL Reference home [ Examples | Attributes | Properties | Methods | Related ]
Much like the HTML script element, this is used to declare a script to be used by the XUL window. You should usually put scripts in a separate file pointed to by the src attribute, but you may also place the script inline inside the opening and closing script tags.
More information is available in the XUL tutorial.
[edit] Examples
<script src="test.js"/>
<script src="http://example.com/js/test.js"/>
<script>
function foo(){
// code
}
</script>
[edit] Attributes
- src
- Type: URL
- The URL of the script.
- type
- Type: language content type
- The language of the script. Usually, you would set this to
application/x-javascript.
|
Inherited from XUL element |
[edit] Properties
|
Inherited from XUL element Inherited from DOM element |
[edit] Methods
|
Inherited from XUL element Inherited from DOM element |