View Full Version : Pop-Up Links in IFRAMES


Webmaster04
10-14-2004, 02:17 AM
In my Iframes, i hav a game that i want 2 pop-up wen sum1 clicks on the link. but evrytime i click on the link, it stayz in the frame, how do i mak it so that a popup comez up with the game in it?

pb&j
10-14-2004, 06:05 AM
add this to your link tag...

target="_blank"

Webmaster04
10-14-2004, 08:25 PM
add this to your link tag...

target="_blank"

thnx

Webmaster04
10-14-2004, 08:38 PM
now that i kno how 2 mak it a new window, does ne1 kno how 2 resize the new window? and put a close button in the new window so that any1 who click on the button can close the window and resume to their page they were just on

leslaie
10-15-2004, 08:13 AM
the target code is for a new window, which should be exactly the same as your reg. window with the close, min buttons in the corner.

heres a code for closing a window:

<form>
<input type="button" class="button" value="Close Me" onClick="window.close()">
</form>

pb&j
10-15-2004, 01:16 PM
to size a new window, you will have to use javascript instead of the target.
onclick

check here...
http://www.lissaexplains.com/javascript4.shtml#window
or do a search in the javascript forum area to find a number of threads already asking about it.

thanks.

Webmaster04
10-17-2004, 02:38 AM
thnx, but how do i change the background color/ add a background image?