<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();"> <script type="text/javascript"> function boom() { var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var wiz = document.createElementNS(XUL_NS, "wizard"); var btn = document.createElementNS(XUL_NS, "hbox"); btn.setAttribute("anonid", "Buttons"); wiz.appendChild(btn); wiz.cloneNode(true); } </script> </window>