XUL Programmer's Reference Manual
|
||||||||||||||||
<browser> Attributes
|
||||||||||||||||
<browser> is a functional, embeddable widget that provides editing functionality to the user. Use the src attribute to load content into the browser window (including src="about:blank") to specify a new, blank page for editing. And see the types specified in NS6 to familiarize yourself with blah blah..
|
||||||||||||||||
type | ||||||||||||||||
Description
type is an optional attribute that specifies the type of content window.Syntax Example<browser type="type" ...> Notes<browser type="content-primary" id="main-window"> "content-primary" is the type used for the main browser in Netscape 6. Just as the class attribute affects the way that the chrome is rendered, the type attribute affects the way that the content is treated in the browser. Different browser types appearing in the Mozilla browser include:
|
||||||||||||||||
name | ||||||||||||||||
Description
name is an optional attribute that specifies the name of content window.Syntax Example<browser name="name" ...> Notes<browser name="content-primary" id="main-window"> The name attribute is used instead of the id to reference a content window from other parts of the chrome, as when a button loads new content by changing the
|
||||||||||||||||
src | ||||||||||||||||
Description
src is the attribute used to load content into the content window.Syntax Example<browser src="HTML content file" ...> Notes<browser id="main-window" src="about:blank"> Use JavaScript to set the src attribute from the UI:
|
||||||||||||||||
onblur | ||||||||||||||||
Description
onblur is an event listener attribute for handling the event raised when the browser loses focus.Syntax <element onblur="javascript event handler code">Example Notes<browser onblur="blurWindow()"> None.
|
||||||||||||||||
onfocus | ||||||||||||||||
Description
onfocus is an event listener attribute for handling the event raised when the browser gets focus from the user.Syntax <element onfocus="javascript event handler code">Example Notes<browser onblur="focusWindow()"> None.
|
Last updated: 5/25/00 Ian Oeschger