|
-
Nov 29th, 2002, 11:34 AM
#1
Thread Starter
Addicted Member
popupwindow help..
Im trying to get this popup window to work. So far it works, but I cant MAXIMIZE the window at all. Its greyed out, when the popupwindow pops up.
Heres my code, whats wrong with it? Or whats the correct way to write it. Thanx!
PHP Code:
<script language="JavaScript"> function PopupWindow(win) { PopupWin=window.open(win,"PopupWin","toolbar=yes,directories=no,status=no,scrollbars=yes,menubar=yes,width=700,height=500"); PopupWin.window.focus()}
</script>
<a class="coolLink" href="javascript:PopupWindow('http://www.thecentralword.com/cgi-bin/album.pl')"><font style="font-size: 11pt" color="#660033">
Member's Photo Gallery</a>
</td>
-
Nov 29th, 2002, 12:09 PM
#2
Frenzied Member
Try adding resizable=yes to the parameters, see if that also. By the way really you should do the link something like this, as not everyone has javascript, this way will let those users see the page too:
Code:
<a class="coolLink" href="http://www.thecentralword.com/cgi-bin/album.pl" onclick="PopupWindow(this.href); return false;">
-
Nov 29th, 2002, 12:20 PM
#3
Thread Starter
Addicted Member
So far it works! thanx!
why wouldnt everyone have javascript? Isnt that like embedded into IE?
B.T.W Is there a way so that the popup window will center in the main page when it pops up? Do u use the left and right parameters for that? Or something else?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|