Skip to content

Instantly share code, notes, and snippets.

@marsch
Created August 8, 2011 16:33
Show Gist options
  • Save marsch/1132120 to your computer and use it in GitHub Desktop.
Save marsch/1132120 to your computer and use it in GitHub Desktop.
main.js
function showMore() {
document.getElementById("more-text").hidden = false;
}
alert("heheh");
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="main" title="My App" width="300" height="300" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://myapp/content/main.js"/>
<caption label="Hello World"/>
<separator/>
<button label="More >>" oncommand="showMore();"/>
<separator/>
<description id="more-text" hidden="true">This is a simple XULRunner application. XUL is simple to use and quite powerful and can even be used on mobile devices.</description>
</window>
pref("toolkit.defaultChromeURI", "chrome://myapp/content/main.xul");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment