Well... It's pretty simple... You can't do it like that. Javascript is rendered once the page has already been downloaded by the browser. Since it has already been downloaded, the cfmodule tag has already been processed by CF.
The best you can do is to detect the screen size before they get to this page, on some sort of entry page, put the values into some hidden text fields and then submit the form and store the values in their session scope. <script> document.form.width.value = window.screen.width; document.form.height.value = window.screen.height; document.form.maxwidth.value = window.screen.availWidth; document.form.maxheight.value = window.screen.availHeight; </script> <FORM name="form" action="#cgi.script_name#" method="post"> <!--- From JavaScript ---> <INPUT type="hidden" value="" name="width"> <INPUT type="hidden" value="" name="height"> <INPUT type="hidden" value="" name="maxwidth"> <INPUT type="hidden" value="" name="maxheight"> </FORM> HTH =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:256976 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

