-
Have Pop Up Window, Want iFrame
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
opUp('http://www.bbc.co.uk')">
-
-
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
Last edited by Birmingham; 06-21-2006 at 03:43 PM.
-
-
If possible I would like the width to be 100% and the height 400px.
Many thanks.
-
-
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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks