SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    code not working

    <IFRAME id='myFrame' name='myFrame' src='myframe.htm'></FRAME>

    <SCRIPT>
    var myhtml = document.getElementById('myFrame').document.body.innerHTML;
    myHTML = myHTML.replace(/>/,">");
    myHTML = myHTML.replace(/</,"<");
    document.getElementById('myFrame').document.body.innerHTML= myHTML;
    </SCRIPT>

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    For starters, the iframe isn't be closed because the end tag seems to have been mis-spelled.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •