Redirect the parent page from IFrame

It will be a hazard if we can manipulate other frames/window withou using client-side scripts or user-invoked actions.

Here’s a list of alternatives:

Javascript options:

window.top.location.href=theLocation;
window.parent.location.href=theLocation;
window.top.location.replace(theLocation);

Non-javascript options:

<a href="https://stackoverflow.com/questions/2092275/theLocation" target="_top">Click here to continue</a>  
<a href="https://stackoverflow.com/questions/2092275/theLocation" target="_parent">Click here to continue</a>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)