View Full Version : Resizing a window inside of an iframe script

11-03-2004, 09:22 PM
I am using the iframe scroller at http://www.dynamicdrive.com/dynamicindex2/iframe-scroller.htm and wish to edit the code to resize the iframe when a visitor clicks on a specific link. When the frame resizes a new page will open inside of the resized frame.

For example, the user clicks on Flashing Links in the file example above. The iframe resizes and launches another DHTML page in the re-sized window. I am attempting to use the following code:

<script language="JavaScript">
function resizeWindow() {
window.resizeBy (800, 600);
Window.document.href = 'http://www.google.com';

<body onload="resizeWindow()">

in a new page that would launch inside of the iframe. I wish for the resizeWindow function to resize the iframe coordinates. It is not working yet. Does anyone have any suggestions? Thanks.