954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Get frame height and width

I need some help to find the frame width and height in a frameset.
I used something like top.[framename].document.body.clientwidth but I'm not getting the clientid when i used top. function???

Letscode
Junior Poster
175 posts since Feb 2005
Reputation Points: 11
Solved Threads: 6
 

Yeah i got the answer..to get the height and width of the window inside the frame by using
in the Javascript..

mapframeheight = document.body.clientHeight;
mapframewidth = document.body.clientWidth;

Letscode
Junior Poster
175 posts since Feb 2005
Reputation Points: 11
Solved Threads: 6
 

And I sent these values to the server by using something like a query string...
windid = window.open("default.aspx?frameheight="+mapframeheight+"&framewidth="+mapframewidth+"","mainframe");

Letscode
Junior Poster
175 posts since Feb 2005
Reputation Points: 11
Solved Threads: 6
 

hi -i need some frame for get size of height

m.electron67
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You