Works In FF But Not IE7 Please Help

Discussion in 'JavaScript' started by gobbly2100, Jan 21, 2008.

  1. #1
    Hey,

    Could someone take a look at this and tell me why it does not appear to work in IE7 but is fine in FF please

    http://www.2weird.co.uk/javascript/objects.html

    Really don't get it, I am using Firebug to help me but I don't see that picking up anything either.

    Thanks in advance!

    EDIT: Ok I fixed it, I had to simply add the following line "x.document.close();" to this block of code below the document.write.

    function newWindow(x) {
    x.document.close();
    x.document.open();
    x.document.write(content);
    x.moveTo(50,50);
    x.focus();
    }
     
    gobbly2100, Jan 21, 2008 IP