SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Popup working in FF but not ie or safari

    I have a problem I cant make this code work in explorer or Safari but in Firefox does it work. Can someone please see if there is something wrong with the code or hace an explanation to why it is not working in explorer?

    PHP Code:
    echo "<script type=\"text/javascript\">openPopupWindow('functions/sending.php?nr=0', 'Sending mail', '200', '200', 'no', 'yes')";
                echo 
    "</script>"
    Code:
    function openPopupWindow(strUrl, strWindowName, paramWidth, paramHeight, paramScrollbars, paramresizable)
       {
          var objNewWin;
          var strWindowFeatures;
          strWindowFeatures = 'width='+paramWidth+',height='+paramHeight+',scrollbars='+paramScrollbars+',resizable='+paramresizable+',status=0,toolbar=0,menubar=0,location=0,directories=no'
          objNewWin = window.open(strUrl, strWindowName, strWindowFeatures);
          objNewWin.focus();
       }
    Last edited by yrvaken2; Aug 16, 2006 at 03:33.

  2. #2
    SitePoint Member
    Join Date
    Mar 2005
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No one know what is wrong?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •