Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes the javascript:winopen have a minimum width in IE?
    primarykey
    data
    text
    <p>I am trying to implement a "good" popup window in my website so I can show portfolio examples of some web banners. The user is given a "launch demo" button to click if they wish to see the banner in action. This works great in Firefox, Chrome &amp; Safari (both PC &amp; Mac). </p> <p>Two of my 3 banners work fine in IE, but for some reason the 1st banner pops up 90 or so pixels wider than it should (it s/b 160px, the other 2 banners have 715px and 550px widths). I am still new to Javascript, so I am not sure if it could be a minimum width or where the issue might be? Any thought would be VERY helpful! Thanks! Here is the Javascript code I am using:</p> <pre><code> &lt;script type="text/javascript"&gt; &lt;!-- var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" &amp;&amp; pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(mypage,myname,settings);} // --&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; &lt;!-- Begin function winopen(url,a,b){ newwin=window.open(url,a,b) } // End --&gt; &lt;/script&gt; </code></pre> <p>And here is the html it's acting on:</p> <pre><code>&lt;h3&gt;MAve Web Banner &lt;a href="javascript:winopen('http://www.mightyjen.com/swf/MAve_FlashBanner_160x600.html','blank','width=160,height=600,scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no')" class="formButton"&gt;Launch Demo&lt;/a&gt;&lt;/h3&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload