Forum Moderators: phranque

Message Too Old, No Replies

Adding a pop up window

been a long time since I've doen on of these.

         

Sarah Atkinson

4:45 pm on Aug 1, 2005 (gmt 0)

10+ Year Member



I can't rember how to do pop-ups since I rarely use them but I figured for this case it will work best. Basicly what I want is for the user to clicks on an image to link to anothe page. I don't want them to loose the page they are on so it opens in a new window. but I want them to know it is in a new window ahh heck... how aboult this you know when you go to a shoping site and they have a "click for larger image" basicly that's what I want.

Sarah

Sarah Atkinson

5:15 pm on Aug 1, 2005 (gmt 0)

10+ Year Member



This is what I came up with after thumbing trough a bunch of ref books. I think this is right. Is this the best way or is there a better one?

<a href="javascript:;" onClick="window.open('http://google.com','','scrollbars=yes,resizable=yes,width=450,height=100%')"><img src="Untitled-1_02.jpg" border="0"></a>

txbakers

5:48 pm on Aug 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's what I do.

innocbystr

8:41 pm on Aug 1, 2005 (gmt 0)

10+ Year Member



Advise you test it thoroughly first on all browsers. My daughter uses IE with a couple of add-on toolbars which block every pop-up window that I've tried to create.