...

View Full Version : Pop-Up



SDP2006
07-09-2003, 02:06 AM
Cant i just do this

EDIT Blasted emoticons LOL


<a href="javascript:popup("page.html")>LINK</a>

to make a pop up?

If so, how would I set the size?

wickford
07-09-2003, 02:14 AM
SDP2006, here is the code for a popup:

<a href="javascript:window.open('page.html','','width=WIDTH,height=HEIGHT');">Link</a>

Replace the words in capitals with whatever size you want for the window.

This page may give you more information on customizing popups:
http://www.javascriptkit.com/javatutors/window1.shtml

SDP2006
07-09-2003, 02:23 AM
It works, but when the link is clicked, the page i am on (index.html) displays "[object]" on it instead of my page :confused:

tommysphone
07-09-2003, 03:17 PM
<a href="#" onclick="javascript:window.open('page.html','','width=400,height=200');">

SDP2006
07-09-2003, 05:59 PM
Works Great



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum