Jump to content

Dynamically adjust iframes


Skippy1957
 Share

Recommended Posts

I have a page with 2 two iframes (80% / 20%)
I want a button (where?) to dynamicaly hide the right iframe and set te left to 100%
How do i do that? Suggestions are very welcome!
This is file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="nl"><head><title>Titel</title>
<style>
.menu {
float:left;
width:80%;
height:100%;
}
.mainContent {
float:left;
width:20%;
height:100%;
}
.toolbar=no;
.menubar=no;
</style>
</head><body>
<iframe class="menu" src="http:/testpage.htm" frameborder="0"></iframe>
<iframe class="mainContent" src="./helpinfo.htm" frameborder="0"></iframe>
</body></html>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...