Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: frames

  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    frames

    Trying to write to a sibling frame.

    This should work...
    What am i missing

    fraB is the window I write to!

    function ClearFrame ()
    {
    var text = "<html><head></head><body><h1 align='center'>Selections<\/h1><\/body><\/html>";

    parent.fraB.document.write(text);
    parent.fraB.document.close();
    } /* end ClearFraB () */

    thank you
    Kevin

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    kev...
    /me doesnt just a dooo® thattt stufff...:O((( 'cept when she was just a comparing® your coding lines???
    var text = "<html><head></head><body><h1 align='center'>Selections<\/h1><\/body><\/html>";


    seems ya didnt...errr just a forgot® to \ the </head> one??? like you did for the <\/body> n' <\/html> ones???

    just a guessing® 'cept ya nevvver knowww...hehehe

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,950
    Thanks
    0
    Thanked 236 Times in 233 Posts
    when do you call ClearFrame()?
    you can also try:

    top.frames["fraB"].document.write(text);
    top.frames["fraB"].document.close();


  •  

    Posting Permissions

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