javascript/xul help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fluk3d
    New Member
    • Jul 2007
    • 5

    #1

    javascript/xul help

    Hello,

    I'm working on a portion of my Firefox script which will when you click on a button it will call the openUrl function and open up the nwtools URL. Eventually I will be passing the eWhois variable into the openURL function so i can modify the host. Unfortunately it is not working at the basic stage of just opening the following url. Any ideas?


    [CODE=html]<groupbox>
    <caption label="DNS Tools"/>
    eWhois = document.getEle mentById('nWhoi s').value;
    <row><textbox id="nWhois" value=""/> <button label="whois" width="15" oncommand="open URL();" /> </row>
    </groupbox>

    function openURL() {
    window.open(htt p://nwtools.com/default.asp?pro g=whois&host=cn n.com, "_blank", "chrome=tru e");
    }[/CODE]
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, fluk3d.

    Try putting the URL in quotes.

    Comment

    Working...