Script
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.
Example:
<script src="test.js"/>
HTML の script 要素と同様、この要素は XUL ウィンドウで利用されるスクリプトを宣言するために利用される。通常、スクリプトは src 属性で指示される別個のファイルに置かれるが、開始タグと終了タグの間に直接記しても良い。
例 :
<script src="test.js"/>
属性:
XUL Element から継承:
align
allowevents
allownegativeassertions
class
coalesceduplicatearcs
collapsed
container
containment
context
contextmenu
datasources
debug
dir
empty
equalsize
flags
flex
height
hidden
id
insertafter
insertbefore
left
maxheight
maxwidth
menu
minheight
minwidth
mousethrough
observes
ordinal
orient
pack
persist
popup
position
ref
removeelement
sortDirection
sortResource
sortResource2
statustext
style
template
tooltip
tooltiptext
top
uri
wait-cursor
width
src
Type: script URL
The URL of the script.
型 : script URL
スクリプトの URL。
type
Type: language content type
The language of the script. Usually, you would set this to 'application/x-javascript'.
型 : language content type
スクリプトの言語。通常は 'application/x-javascript' に設定する。
プロパティとメソッド:
XUL Element から継承:
Element から継承: