this is done with javascript, then the results must be posted back to
the server usually in hidden fields. you can render a "sniffer" page
that auto postbacks. the actual javascript code depends on the browser:
var width = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var height = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
this is done with javascript, then the results must be posted back to the
server usually in hidden fields. you can render a "sniffer" page that auto
postbacks. the actual javascript code depends on the browser:
var width = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var height = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;
even those that support javascript can has it disabled. that why you use
a meta tag to refresh, allowing you to detect this. also if there is no
javascript, can not know the size.
-- bruce (sqlwork.com)
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.