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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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