XUL:iframe
出典: MDC
« XUL リファレンス HOME [ 例 | 属性 | プロパティ | メソッド | 関連項目 ]
HTMLの iframe 要素と似た機能を持つ内側のフレームです。src 属性はフレームの内容を指定するために使用されます。この内容は別のドキュメントです。iframe の子要素は無視されます。
詳しい情報は XULチュートリアルにあります。
- 属性
- showcaret, src
- プロパティ
- accessibleType, contentDocument, contentWindow, docShell, webNavigation
<iframe src="table.php" flex="2" id="browserTable" name="table_frame"/>
メニューから URL を選択する
<menulist oncommand="doNav(this);">
<menupopup>
<menuitem label="Mozilla" value="http://mozilla-japan.org" />
<menuitem label="Slashdot" value="http://slashdot.jp"/>
<menuitem label="Sourceforge" value="http://sf.net" />
<menuitem label="Freshmeat" value="http://freshmeat.net"/>
</menupopup>
</menulist>
<iframe id="myFrame" flex="1"/>
<script>
function doNav(obj){
var url = obj.selectedItem.value;
// note the firstChild is the menupopup element
document.getElementById('myFrame').setAttribute('src', url);
}
</script>
[編集] 属性
- showcaret
- 型: boolean
- コンテンツ領域に文字入力のキャレットを表示するかどうかを設定します。デフォルト値は
false です。
- src
- 型: URL
- 要素内に表示するコンテンツの URL。
|
XUL 要素からの継承
align,
allowevents,
allownegativeassertions,
class,
coalesceduplicatearcs,
collapsed,
container,
containment,
context,
contextmenu,
datasources,
dir,
empty,
equalsize,
flags,
flex,
height,
hidden,
id,
insertafter,
insertbefore,
left,
maxheight,
maxwidth,
menu,
minheight,
minwidth,
mousethrough,
observes,
ordinal,
orient,
pack,
persist,
popup,
position,
preference-editable,
querytype,
ref,
removeelement,
sortDirection,
sortResource,
sortResource2,
statustext,
style,
template,
tooltip,
tooltiptext,
top,
uri,
wait-cursor,
width
|
[編集] プロパティ
|
XUL 要素からの継承
align,
allowEvents,
boxObject,
builder,
className,
collapsed,
contextMenu,
controllers,
currentItem,
database,
datasources,
dir,
flex,
height,
hidden,
id,
left,
listBoxObject,
maxHeight,
maxWidth,
menu,
minHeight,
minWidth,
observes,
ordinal,
orient,
pack,
persist,
ref,
resource,
statusText,
style,
tooltip,
tooltipText,
top,
value,
width
DOM 要素からの継承
attributes,
childNodes,
cloneNode,
firstChild,
lastChild,
localName,
namespaceURI,
nextSibling,
nodeName,
nodeType,
nodeValue,
ownerDocument,
parentNode,
prefix,
previousSibling,
tagName
|
- accessibleType
- 型: integer
- 要素の accessibility オブジェクトの種類を示す値。
- contentDocument
- 型: document
- この読み取り専用のプロパティは要素内の document オブジェクトを含みます。
- contentWindow
- 型: window
- この読み取り専用のプロパティは要素内の window オブジェクトを含みます。
- docShell
- 型: nsIDocShell
- この読み取り専用のプロパティは document の nsIDocShell オブジェクトを含みます。
- webNavigation
- 型: nsIWebNavigation
- この読み取り専用のプロパティは document の nsIWebNavigation オブジェクトを含みます。このメソッドのほとんどは、goBack や goForward のように要素自身から直接呼び出せます。また、reloadWithFlags および loadURIWithFlags によって使用される読み込み定数を含みます。
[編集] メソッド
|
XUL 要素からの継承
blur,
click,
doCommand,
focus,
getElementsByAttribute
DOM 要素からの継承
addEventListener,
appendChild,
dispatchEvent,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getElementsByTagName,
getElementsByTagNameNS,
hasAttribute,
hasAttributeNS,
hasAttributes,
hasChildNodes,
insertBefore,
isSupported,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
removeChild,
removeEventListener,
replaceChild,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS
|
[編集] 関連項目
- インタフェース
- nsIAccessibleProvider