PDA

View Full Version : Have Pop Up Window, Want iFrame



Lambo
06-21-2006, 02:57 PM
Hi.

I have found the attached code on the net to open a pop-up window. Can anyone tell me how to convert this so that I get it as an iframe instead of a pop up window.

Many thanks.

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400,left = 312,top = 184');");
}
</script>




<BODY onLoad="javascript:popUp('http://www.bbc.co.uk')">

Birmingham
06-21-2006, 03:34 PM
sure.

<iframe style="width:100%; height:400px; color:inherit; background:inherit; margin:0px; padding:0px" frameborder="1" marginheight="0" marginwidth="0" title="IFRAME" scrolling="yes" src="http://www.bbc.co.uk/"></iframe>

let me know if u want it customised in any other way

Lambo
06-21-2006, 03:37 PM
If possible I would like the width to be 100% and the height 400px.

Many thanks.

Lambo
06-22-2006, 09:55 AM
Thanks again.

Should this iframe code replace any existing code or just be added in? Sorry if this is a stupid question but I am really new to all this.