almost 9 years ago
Hello Reader's if you are making the user screen compatible website then you must get the screen hight and width of user. By using Javascript you can easily get it. Lets see how to get screen size.
<!DOCTYPE html> <html> <body> <script> document.getElementById("demo").innerHTML = "Screen height is " + screen.height; document.getElementById("demo").innerHTML = "Available Screen Width: " + screen.availWidth; </script> </body> </html>
Output:-
Screen height is 768 Screen height is 1366
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)