Forum Moderators: open

Message Too Old, No Replies

New Window Using OnClick Command

         

midnightscape

5:04 pm on Jan 13, 2004 (gmt 0)

10+ Year Member



Can someone please help me with inline Javascript? I'm trying to use the onclick command to open a new window which will just hold an image and want the window to auto size itself to the image size (there are hundreds of the photos and want to just copy and paste the code and change the image link) If there is an easier way that I could do this suggestions would be appreciated.

Thanks!

Purple Martin

12:48 am on Jan 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here's an example of how to open a new window from an onClick event:

onClick="window.open('','newWindow','toolbar,width=150,height=100')"

Auto-resizing after opening is another question - and one that I remember seeing here recently. Have a search through recent posts for it.