Note that there are some explanatory texts on larger screens.

plurals
  1. POOpen file from desktop to a popupwindow
    text
    copied!<p>Im a total beginner at html coding and i was wondering if I can write window size and other properties directly into the page. Il explain.</p> <p>Im working on a calc and I want to run the html file on my desktop. Everything works fine but it launches in the browser where other tabs are opened. I want it to run in a small popup window with no statusbars bookmarkbars with a fixed window size.</p> <p>EDIT:</p> <p>the code itself </p> <pre><code>&lt;!doctype html&gt; &lt;html&gt; &lt;head&gt;&lt;center&gt;Kalkuraatur&lt;/center&gt; &lt;Title&gt;Javascripti Kalkulaator&lt;/title&gt; &lt;script type="text/javascript"&gt; if(window.name != "mypopup") { window.open(document.location.href,'mypopup', 'left=300,top=200,width=200,height=200,toolbar=0,status=0,location=0,menubar=0,scrollbars=0,titlebar=0'); var child = window.open(...; child.focus(); window.close(); } &lt;/script&gt; &lt;script type="text/javascript"&gt; function arvuta () { kalku.sisend.value = eval(kalku.sisend.value) } function Bspace(sisend) { kalku.sisend.value = kalku.sisend.value.substring(0, kalku.sisend.value.length - 1) } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;center&gt; &lt;form name="kalku"&gt; &lt;table border=2&gt; &lt;tr&gt;&lt;td&gt; &lt;input type="text" name="sisend" size="21"&gt; &lt;br&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt; &lt;input type="button" name="seitse" value=" 7 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '7'"&gt; &lt;input type="button" name="kaheksa" value=" 8 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '8'"&gt; &lt;input type="button" name="yheksa" value=" 9 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '9'"&gt; &lt;input type="button" name="ykstagasi" value="del" style="height: 22px; width: 30px" onclick="Bspace(this)"&gt; &lt;input type="button" name="kustuta" value=" C " style="height: 22px; width: 30px" onclick="kalku.sisend.value = ''"&gt; &lt;br&gt; &lt;input type="button" name="neli" value=" 4 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '4'"&gt; &lt;input type="button" name="viis" value=" 5 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '5'"&gt; &lt;input type="button" name="kuus" value=" 6 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '6'"&gt; &lt;input type="button" name="jaga" value=" ÷ " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '/'"&gt; &lt;input type="button" name="korruta" value=" x " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '*'"&gt; &lt;br&gt; &lt;input type="button" name="yks" value=" 1 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '1'"&gt; &lt;input type="button" name="kaks" value=" 2 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '2'"&gt; &lt;input type="button" name="kolm" value=" 3 " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '3'"&gt; &lt;input type="button" name="lahuta" value=" - " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '-'"&gt; &lt;input type="button" name="plus" value=" + " style="height: 22px; width: 30px" onclick="kalku.sisend.value += '+'"&gt; &lt;br&gt; &lt;input type="button" name="null" value=" 0 " style="height: 23px; width: 64px" onclick="kalku.sisend.value += '0'"&gt; &lt;input type="button" name="koma" value=" , " style="height: 22px; width: 30px" onclick="kalku.sisend.value += ','"&gt; &lt;input type="button" name="v6rdub" value=" = " style="height: 22px; width: 64px" onclick="arvuta ()"&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/form&gt; &lt;/center&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

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