Results 1 to 4 of 4

Thread: Have Pop Up Window, Want iFrame

  1. #1
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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="javascriptopUp('http://www.bbc.co.uk')">

  2. #2
    Join Date
    Jun 2006
    Location
    Birmingham
    Posts
    39
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If possible I would like the width to be 100% and the height 400px.

    Many thanks.

  4. #4
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •