PDA

View Full Version : Change external pages on iframe



dbldee
08-22-2009, 06:00 PM
1) Script Title: DHTML Widget Window

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem: Seeking method to change external pages on which the window appears.

ie. the iframe content remains the same,while the page in the browser is changed

dbldee
08-22-2009, 09:10 PM
1) Script Title: DHTML Widget Window

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem: Seeking method to change external pages on which the window appears.

ie. the iframe content remains the same,while the page in the browser is changed


function changeParentLocation() {
document.frm1.submit();
self.parent.location.href = 'parent url';
return true;
}


<input type="button" name="Submit" value="submit Url" onclick="changeParentLocation();" />