Tutorial :How to find Masterpage height and width using javascript



Question:

How to find Masterpage offsetheight and offsetwidth using javascript ?

Regards, kumar


Solution:1

Isn't the MasterPage height and width just the document's height and width? And by offsetWidth and offsetHeight, do you mean you want the width and height? Offset is usually for left and top.

Use jQuery's width and height methods:

var width = $(document).width();  var height = $(document).height();  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »