Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<form method=\"POST\" name=\"t\">
<strong>width:</strong>
<input type=\"text\" size=\"20\" name=\"t1\">
<br />
<strong>height:</strong>
<input type=\"text\" size=\"20\" name=\"t2\">
<br />
<strong>availWidth</strong>
<input type=\"text\" size=\"20\" name=\"t5\">
<br />
<strong>availHeight</strong>
<input type=\"text\" size=\"20\" name=\"t6\">
<br />
<strong>colorDepth:</strong>
<input type=\"text\" size=\"20\" name=\"t3\">
<br />
<strong>pixelDepth: </strong>
<input type=\"text\" size=\"20\" name=\"t4\">
<br />
var screen = window . screen;
document . getElementById( 'ne6to1' ) . innerHTML = screen . width;
document . getElementById( 'ne6to2' ) . innerHTML = screen . height;
document . getElementById( 'ne6to3' ) . innerHTML = screen . colorDepth;
document . getElementById( 'ne6to4' ) . innerHTML = screen . pixelDepth;
document . getElementById( 'ne6to5' ) . innerHTML = screen . availWidth;
document . getElementById( 'ne6to6' ) . innerHTML = screen . availHeight;
Това е при PHP. При Javascript e малко по-различно: http://w3schools.com/js/kWo каза:хм еми не мога да ги изведа в едни ечота примерно
echo $width; и така не разбирам много от javascript