<popup xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script xmlns="http://www.w3.org/1999/xhtml"> function doe(){ document.documentElement.autoPosition = 'on'; window.location.reload(); } setTimeout(doe, 300); </script> </popup>