- iframe's should not be able to view content/cookies from another domain- iframe children CAN view certain properties and execute certain behaviors - parent.window.blur - parent.window.opener - parent.window.length - others- iframe children CAN redirect the parent frame to a new location (great for phishing) - parent.location.href - parent.window.location
对于有些利用子窗口执行父窗口js的方法是限制的
比如,在子窗口里可以这么使用:
parent.location.href="http://www.sohu.com";