Jump to content

<iframe> height


Kapacity
 Share

Recommended Posts

<script type="text/javascript">var amount = 12var total = 0function setiframe(){total = amount * 203.33;document.getElementById("vehciles").height = total;}

I'm trying to get the <iframe> height to change if the amount variable has been altered. The function is called through <body onload="setiframe()". The height of the <iframe> stays to what it's dynamically set to. I used an alert box to check if the variables are processing, they are. Here is the web page that I've been studying to try and understand what might be wrong.http://www.w3schools.com/htmldom/prop_iframe_height.aspPlease help if you can. Thank you for taking the time to read. :)

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...