rasyekj
12-29-2003, 11:25 AM
I need to open a new browser window using javascript. I know how to open a new window, but not using a general image map in an array.
For reference, you can go to http://www.gosps.com. Highlight "commercial product" and you will see GolfGopher. I need the link to GolfGopher to open in a new window.
If you view the source code, you will see the link to GolfGopher set as:
url[7][1] = "http://www.golfgopher.com/B2B";
I tried changing it to:
url[7][1] = "javascript:window.open('http://www.golfgopher.com/B2B')";
This opens the page in a new browser window, but changes the body of the parent window to say "[object]".
If anyone could please help, I'd appreciate it.
Thanks.
For reference, you can go to http://www.gosps.com. Highlight "commercial product" and you will see GolfGopher. I need the link to GolfGopher to open in a new window.
If you view the source code, you will see the link to GolfGopher set as:
url[7][1] = "http://www.golfgopher.com/B2B";
I tried changing it to:
url[7][1] = "javascript:window.open('http://www.golfgopher.com/B2B')";
This opens the page in a new browser window, but changes the body of the parent window to say "[object]".
If anyone could please help, I'd appreciate it.
Thanks.