Re: Problem with URL
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Problem with URL

From: VK <schools_ring@yahoo.com>
Date: Wed Nov 30 2005 - 12:07:46 CET

TONI-BCN wrote:
> I have a HTML page, for example http://www.mypage.html.
>
> If I want to go to www.google.com, is some way to be able to recover
> with Javascript "www.google.com"?
>
> I have tried it with window.location, etc but she does not serve to me
> since it shows "http:www.mypage.html to me".

If I uderstand you properly, you want to navigate from
http://www.myserver.com/mypage.html to http://www.google.com using
JavaScript ?

Then you may do it in this way:

window.location.href = "http://www.google.com";
Received on Sat Dec 3 04:33:19 2005