Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Browser's Dimensions

Status
Not open for further replies.

victorsk

Programmer
Jul 26, 2005
21
CA
Hello,

I am new to JavaScript and am working with SVG. I am trying to get the dimensions of a browser when it is minimized and maximized. What I have is:

document.body.clientWidth
document.body.clientHeight
but I keep getting "document.body has no properties" error.

What I have in terms of JavaScript declaration is this:
<script language="javascript"><![CDATA[
//code
]]></script>
I am not sure if this is the problem because I've seen other ways of embedding JavaScript code. Is there a more "versatile" way of getting browser's dimensions using JavaScript?

Thank you,
Victor.
 
Hello All,

I figured out a way to make it work what had to by not using browser's dimension information. I guess this problem is rather SVG specific.

Thank you,
Victor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top