// the iframe of the div I need to access var iframe = document.getElementsByTagName(\"iframe\")[2]; var innerDoc = iframe.contentDocument || iframe.contentWindow.do
For security reasons your browser won't allow you to access javascript in an iframe from another domain.
See the top answer here:
jQuery cross domain iframe scripting