Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Is Alteration Possible

This is a discussion on Is Alteration Possible within the Html forums, part of the Programming Talk category; I am puzzled with a small question.Is it possible to alter the HTML source of a layer in Internet Explorer. ...

  1. #1
    ashlee is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    108

    Is Alteration Possible

    I am puzzled with a small question.Is it possible to alter the HTML source of a layer in Internet Explorer. If so how can one do this.


  2. #2
    rachelle is offline Member Array
    Join Date
    Apr 2006
    Answers
    97
    Quote Originally Posted by ashlee View Post
    I am puzzled with a small question.Is it possible to alter the HTML source of a layer in Internet Explorer. If so how can one do this.

    here is how you do it ...

    PHP Code:
    <SCRIPT LANGUAGE=JAVASCRIPT>


        function 
    myClick() {
        
    alert('innerHTML: ' document.all('MyID').innerHTML);
        
    document.all("MyID").innerHTML '<FONT COLOR="#FF0000">this</FONT> is <B>not</B> <I>plain</I>';
        
    alert('innerHTML: ' document.all('MyID').innerHTML);
    }

    </SCRIPT>
    <P ID="MyID">this is a <B>plain</B> paragraph</P>
    <FORM><INPUT TYPE="BUTTON" VALUE="Click Me" onClick="myClick()"></FORM> 



Latest Article

Network Security Risk Assessment and Measurement

Read More...