Click to See Complete Forum and Search --> : New window,


Vikram
11-24-2003, 05:13 PM
When I try to open a new window in the browser using window.open('Someurl') it opens the new window but changes the content of the current page to nothing but the word ""object" in square brackets like - [object].

Please help...

pyro
11-24-2003, 05:20 PM
Can we see your code, and perhaps a link?

Vikram
11-24-2003, 05:24 PM
Actually I build the entire url at runtime using server-side script but the following is how it looks finally:
<a href="javascript:window.open('www.yahoo.com');"> New Win </a>

fredmv
11-24-2003, 05:24 PM
http://forums.webdeveloper.com/showthread.php?s=&threadid=21793#post113053

Vikram
11-24-2003, 05:34 PM
That solved it. Thank you very much.
You guys are great.
BTW, sorry for not reading the guidelines and searching the forum first. I would have found it if I had searched.
Ayways thanks again.