c# - Redirect the parent page from IFrame -


i using iframe, , iframe want redirect page.

please tell me how without javascript, ie, no window.location.

response.redirect shows page in iframe, want show page main page.

it hazard if can manipulate other frames/window withou using client-side scripts or user-invoked actions.

here's 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="thelocation" target="_top">click here continue</a>   <a href="thelocation" target="_parent">click here continue</a> 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -