File:  [mozdev] / books / www / articles / browser.xul.txt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Fri Sep 6 20:43:32 2002 UTC (17 years, 1 month ago) by brian
Branches: MAIN
CVS tags: HEAD
updated code samples

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<?xml-stylesheet href="chrome://navigator/skin" type="text/css"?>

<window id="browserwin" title="Simple Browser Widget Display"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    width="640"
    height="480"
    onload="initBrowser()">

<script type="application/x-javascript" src="chrome://jslib/content/browser.js"/>

<broadcasterset id="browserBroadcasters">
    <broadcaster id="canGoBack"    disabled="true"/>
    <broadcaster id="canGoForward" disabled="true"/>
</broadcasterset>

<toolbar class="toolbar-primary chromeclass-toolbar" id="navigation-bar" persist="collapsed" 
              tbalign="stretch">

    <toolbarbutton id="back-button" class="toolbarbutton-1"
                    tooltiptext="Go Back"
                    oncommand="goBack();"
                    observes="canGoBack">
    </toolbarbutton>
             
    <toolbarbutton id="forward-button" class="toolbarbutton-1"
                    tooltiptext="Go Forward"
                    oncommand="goForward();"
                    observes="canGoForward">
    </toolbarbutton>

</toolbar>

<browser id="browser-content" type="content-primary" 
            src="about:blank" flex="1" />

</window>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>