HOW TO: Change the location of a floating iFrame?

Discussion in 'Javascript' started by gsb, Sep 19, 2004.

  1. gsb

    gsb Guest

    I am trying to relocate a floating iFrame on a page like I would a DIV:
    getElementById( "DIVid" ).style.top = "200px";
    getElementById( "DIVid" ).style.left = "200px";

    ....and size:
    getElementById( "DIVid" ).style.width = "500px";
    getElementById( "DIVid" ).style.height = "300px";

    Fine is IE but Netscape does not like it when I use the iFrameID instead of
    the DIVid

    So, does anyone know how to change these style properties on the iFrame
    itself?

    Thanks,

    gsb
    gsb, Sep 19, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. teeshift
    Replies:
    2
    Views:
    239
    Chris Pearl
    Dec 1, 2006
  2. Daedalous
    Replies:
    3
    Views:
    658
    Daedalous
    Jan 16, 2004
  3. gsb
    Replies:
    6
    Views:
    203
    George Hester
    Oct 23, 2004
  4. libsfan01
    Replies:
    1
    Views:
    78
    Martin Honnen
    Oct 11, 2006
  5. Replies:
    2
    Views:
    90
Loading...

Share This Page