开发者

How to display page in entire screen instead of target frame

开发者 https://www.devze.com 2023-04-13 03:30 出处:网络
I am working on a web project. I di开发者_StackOverflow社区vided the page in the ratio 40:60 using <frameset> tag and the screen looks like this,

I am working on a web project. I di开发者_StackOverflow社区vided the page in the ratio 40:60 using <frameset> tag and the screen looks like this,

How to display page in entire screen instead of target frame

When I click on any of the links "salesplan","tracking","reports" the corresponding page will be displayed in the remaining 60% screen portion. like this,

How to display page in entire screen instead of target frame

and follows....

Now if I click on a logout page, logout message will be displayed on the next frame....(60% of the screen). But i want to display this page in entire screen i.e, 100% screen instead displaying it in target frame.

How can I achieve it?


Add target="_top"to your link:

<a href="logour.php" target="_top">Logout</a>

The target attribute can be used to direct links to another location, other than your current frame. If you want to load the link in another frame instead of the top page, use target="framename", where framename is the value of the name attribute of the frame.


set 'target' property.

example:

<a href="http://aaa.com/logpout.html" target="_parent">Logout</a>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号