[WEB4LIB] Re: Can JavaScript or ASP be used to adjust a

Keith Higgs dkh2 at po.cwru.edu
Tue Jan 15 12:55:33 EST 2002


To augment Thomas'  remarks & code,  be aware that a good number of users 
have specifically and intentionally turned off scripting in the browser. 
The reasoning for this is that if a script kiddie has access to a signing 
authority or a SSL secured server it is possible for a maliciously coded 
script to gain access to parts of your system with which you would much 
rather not allow people to tamper. By that I mean that they could access 
and modify your Windows registry and/or read/write/delete other information 
on any of your local drives, and conceivably mapped network drives. That 
would be bad. That said, due to the hoops you have to jump through to do 
that, if a person has enough programming savvy to do that they're probably 
not going to do it via JavaScript.

One quick note on window sizing. Through JavaScript you are able to 
determine screen H&W, browser window outer H&W, and browser window inner 
H&W.  The difference between "outer" and "inner" being that "outer" 
encompasses the entire application whereas "inner" includes only the 
document window.  You are able to do this:

window.outerWidth = new_x;
window.outerHeight = new_y;

to set the application window size but, you are not able to set specific 
values for the inner width or height. You should remember this when 
designing your page to fit a specific resolution and compensate for all of 
the standard interface elements for the targeted browser.

Keith Higgs
Case Western Reserve University
Webmaster - University Library
D. Keith Higgs. Email: dkh2 at po.cwru.edu, dkhiggs at yahoo.com
Case Western Reserve University, Webmaster - University Library
More Info: http://www.cwru.edu/UL/pershomepages/K_Higgs.html



More information about the Web4lib mailing list