Coisox
Coisox

Reputation: 1104

How to "Show Only This Frame" - jQuery/javascript solution needed

In FF we can right-click "Show This Frame Only". So how to do it in javascript/jquery? Becoz i want to remove my webapps banner (which inside another frame of another frameset) but fail.

Upvotes: -1

Views: 938

Answers (1)

Nishchay Sharma
Nishchay Sharma

Reputation: 1324

From what i could understand, you want to remove your web-page's head banner. That is, your page is inside an iframe and you want that it automatically take over the parent page as soon as it loads. To do that, add this javascript code:

top.document.location.href="your_page_link";

Upvotes: 1

Related Questions