-
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>
-
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;">
-
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?