I have an input field for web address and once I put in the web address, example "yahoo.com", I'd like the button to open that address in new tab or window.
<input type="text" width="30%" id="text" />
<input type="button" id="hlight2" value="Submit" onClick="javascript: window.open();" />