is it possible to get to know the size of the window from the browser the user is using? using asp(<%@ Language=VBScript %>)
Printable View
is it possible to get to know the size of the window from the browser the user is using? using asp(<%@ Language=VBScript %>)
No. What are you trying to accomplish?
i want to change the size of an image (header) of my web page, according the size of the window/ or the screen resolution
you can't do it with asp (because it's processed on the server) but you can find this out using the window object in javascript.
You can sniff the width and height, and using that, change the size of the header, or pick out separate headers for different resolutions.
please could you tell me how to sniff tje width and height. Ihat was what i originally ment with my questionQuote:
Originally posted by mendhak
You can sniff the width and height
thx
screen.width() and screen.height()...
Code:<input type="button" value="Get Values" onclick="alert(screen.height + ' ' + screen.width);" />
thx