I don't know much javascript myself, so please don't rely on the code working on all browsers.<script TYPE="text/javascript" LANGUAGE="JavaScript"> function fill_in_screensize() { document.forms['main_form'].width.value=screen.width; document.forms['main_form'].height.value=screen.height; return true; } </script> .... .... <form name=main_form> <input type=hidden name=width> <input type=hidden name=height> <input type=submit onClick='fill_in_screensize();'> </form>
In reply to Re: Get visitor's screen size.
by amphiplex
in thread Get visitor's screen size.
by Seumas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |