I'm using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "I have a child page in an iframe. How can I detect if the child page is being viewed in the parent iframe, or if the child page is being viewed alone ?
if ( (window.document.location + "") != (window.top.location + "") ) works in IE8 but stalls Chrome.
if ( (window.document.location + "") != (window.top.location + "") ) works in IE8 but stalls Chrome.