[Javascript] window.open problem

Jeff Walters jeff at cybermill.com
Fri Apr 27 14:27:04 CDT 2001


> Which works fine (opens the new window with the required page and
> properties). The problem is with the parent window which changes and shows
> up blank with [object] in it. I want to just open the page and have its
> parent to stay the same. I DON'T want to use something like this:
> <A HREF="#" onClick="javascript:window.open('somepage','','height=550,
> width=300, scrollbars=yes, status=no,
> toolbars=no,top=10,left=50')">somevalue</A>
> This because once you click on one of the links, all other change to visited
> which is NOT desired.(somepage and somevalue are DB generated, that's why I
> haven't used a function)

Try this.
<A HREF="#" onClick="javascript:window.open('somepage','','height=550,
width=300,scrollbars=yes,status=no,
toolbars=no,top=10,left=50');return false;">somevalue</A>

I would eliminate the spaces between the single quotes. I believe that's a
no-no and netscape won't behave the way you would like.

Jeff


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Walters   (314) 962-4024

Cybermill Communications
8616 Joseph Ave
St. Louis, MO 63144
Jeff at cybermill.com
http://www.cybermill.com/





More information about the Javascript mailing list