Reputation: 51
I want to get the width of the browser.
I have this code inside an iframe
alert($(document).width());
But it display the width of a <div>
element instead.
I also try this code:
alert($(window).width());
But same results.
Upvotes: 2
Views: 1884