Click to See Complete Forum and Search --> : i actually WANT a pop-up! but how?...
meathane
07-28-2003, 07:29 AM
hey you guys...
all i want to do is to have a thumbnail of a map on my page, and some text like 'click the map to enlarge it' and then the bigger version of the map appears in a new window... im sure its java script and it must be simple, but how do i do it?
meathane
07-28-2003, 07:30 AM
so i mean when u click the thumbnail, the bigger window opens...
You need to use window.open:
<a href="yourimg.jpg" onclick="window.open('yourimg.jpg','winname','width=600,height=400'); return false;">click the map to enlarge it</a>
meathane
07-28-2003, 10:57 AM
can that go anywhere between the </html> tags or body tags or what?
If you look at it, you'll notice it is a regular <a> tag, which are apporpriate in the <body> tag. It simply has an onclick handler to open a new window for those with javascript enabled. For those without, it will function as a normal link. So, you can use this on any link on your page.
meathane
07-28-2003, 11:38 AM
it works! thanks u!
HKRS CLAN
07-28-2003, 06:08 PM
how about the old html code
"TARGET"
that should work right??
IE:
<TARGET> </TARGET>
for me it creates a pop up box and i think it would save some space compared to whatever........
Originally posted by HKRS CLAN
IE:
<TARGET> </TARGET>What the heck is that?