Theo Posted September 4, 2006 Posted September 4, 2006 Hi all, I want to resize a listbox using JavaScript. I want to check the current resolution of a user and then take appropriate measures. This is what I have so far: function CheckResolution() { if (screen.availWidth == '1024') { document.forms[0].lbTest.Height = 200px; } else { document.forms[0].lbTest.Height = 400px; } } But nothing happends. Can someone help me with this? Thanks, Theo Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.