hi all,
i need to replace the url of the window to a different
string URL which user has entered, for example i need to have
window.location.replace("www.javaranch.com");
but while doing this, the script appends it to the present URL and doesn't open the correct URL, i need to replace the whole URL even if the user entered string doesn't have a protocol. How to achieve that ? please help.
thanks in advance!!