jquery - How to get window width within an iframe? -


i want width of browser.

i have code inside iframe

alert($(document).width()); 

but display width of <div> element instead.

i try code:

alert($(window).width()); 

but same results.

try this;

parent.document.body.clientwidth 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -