How to load a script to another DIV and resize target DIV and an iframe as well?
Hi,
I have the following page that contains 2 DIVs.
- <div id="div1" style="width: 50%">
- include my script one here
- </div>
-
- <div id="div2" style="width: 50%">
- include my script two here. <input type="button" id="load3" value="load script three to div1">
- </div>
-
- // script three, which contains an iframe
Question:
When the button with id of "load3" is clicked how to load the script three to div1, then resize div1 to 100% and make the iframe inside the script three using 90% of window width and height?
Many thanks.