Results 1 to 3 of 3

Thread: popupwindow help..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Michigan
    Posts
    143

    Unhappy 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>

          
           <
    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> 

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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;">

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2002
    Location
    Michigan
    Posts
    143
    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
  •  



Click Here to Expand Forum to Full Width