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

visual studio - vb.net filter binding source by time -

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -