I am creating a Firefox Extension...what would be the javascript to open a URL in the current tab from a menuitem?
e.g. in my overlay.xul file i have the following line:
<menuitem label="Visit homepage" oncommand="window.location='http://www.somepage.com'"/>
but in firefox, when i click on the menu item, it opens the URL but it screws up the entire layout of the browser.
What's the correct way to do this?