Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript resizing of Firefox pop-up window?
    primarykey
    data
    text
    <p>I'm just learning Javascript and jQuery, but I'm an HTML'r trying to take the next step..</p> <p>I'm attempting to drop content into a table, which can be any size at all (It's for a news site). I check for size and then resize the popup accordingly; while the window isn't exactly right it works, but in Firefox it's not even resizing. </p> <p>Using a generic link to pop-open a basic window:</p> <pre><code>&lt;a onclick="window.open('http://site.local/popup/','popup','width=1,height=1')"&gt;popup&lt;/a&gt; </code></pre> <p>I'm pointing it to a default page where the cms is placing all content into a table (id="top"). It has a default width="1" to force a constraint, and then letting the content expand the table to set the real size. I then check the table size to see and resize the window on document.ready():</p> <pre><code>&lt;script type="text/javascript"&gt; &lt;!-- $(document).ready(function() { var divh = document.getElementById('top').offsetHeight; var divw = document.getElementById('top').offsetWidth; //Test size //alert("Table: width= " + divw + "px / height= " + divh +"px"); //Resize window.resizeTo(divw,divh); } --&gt; &lt;/script&gt; </code></pre> <p>I need to be able to resize a window already opened in Firefox. </p> <p>All the window sizes (except Firefox) are off but I can pad them - a little larger is better than cut-off. Firefox, unfortunately, generates a tiny 180w x 249h window and never resizes. </p> <p>I've searched here unsuccessfully - most suggest editing a setting in firefox, which I clearly can't expect users to do. </p> <p>Any ideas? </p>
    singulars
    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.
 

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