View Full Version : pop up window


netaholic
08-22-2004, 11:32 PM
Can somebody please help me turn a link (keeping all of it's properties), and turn the page it leads to into a pop up window? The page on this site confused me.

<a href="my url here.com">[x]</a>camp</p>

I'd also like the dimensions of the pop up window to be 500x500

THanks!

pb&j
08-22-2004, 11:41 PM
try something like this (untested)...

<a href="#" OnClick="window.open('url here','width=500,height=500');">[x]</a>camp</p>

netaholic
08-23-2004, 12:06 AM
I used this code

<p><a href="font color="green" <input type="link" Value="[+]" ONCLICK="window.open('my url.com', 'Sample', 'toolbar=no,location=no,directories=no,status=no,m enubar=no,scrollbars=yes,resizable=no,copyhistory= yes,width=500,height=500')">[+]</a>Camp</p>

and it works, but the original page turns into an error message

starlet
08-23-2004, 12:10 AM
<p><a href="#" input type="link" Value="[+]" ONCLICK="window.open('http://www.url.com', 'Sample', 'toolbar=no,location=no,d irectories=no,status=no,m enubar=no,scrollbars=yes, resizable=no,copyhistory= yes,width=500,height=500' )">[+]</a>Camp</p>

bunnigirl
08-23-2004, 12:15 AM
I tried out the code and what really confuses me is that the original page goes to another or the same link. Why? Is that supposed to happen? I'm looking for something that won't change the original page at all (meaning it stays STILL and umoved)

Bunni

starlet
08-23-2004, 12:18 AM
<a href="#"

Makes it so it doesnt change the existing page, # as the href tells it to do nothing i guess.

netaholic
08-23-2004, 12:30 AM
Starlet, thanks so much! It works!

Also, I saw your site. It's really cool. What graphics program do you use? Mind if I ask you a few more questions?

starlet
08-23-2004, 01:11 AM
psp8...but i truly am horrific at graphics, i dont follow tutorials, i dont enjoy making graphics, i never remember how i did anything, i just get in there do it and get out as fast as possible, so if its graphics questions i wont be any use im affraid.

netaholic
08-23-2004, 01:28 AM
Actually, I was going to ask you how you made your blog, haha.Thanks!