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
  1. #1
    New Coder
    Join Date
    Jul 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HTML inside iFrame

    hi,
    I have an inner frame inside an html document.On submitting the html,I need to take the html code inside the inner frame including the html and body tags.I am only able to get the code inside the body tag.
    Can anybody help.

    regards

    mathew

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In IE, you can use

    document.documentElement.outerHTML

    Mozilla should see

    document.documentElement.innerHTML

    as well.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    New Coder
    Join Date
    Jul 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    OK

    Well I got it.But I had to use
    document.myiframe.document.body.parentElement.outerHTML.
    Thanks Beetle


  •  

    Posting Permissions

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