change the content's properties

Discussion in 'JavaScript' started by progfrog, Feb 10, 2008.

  1. #1
    hello hello
    function paintRed() {
    mySon.all("5").bgColor = "red" ;
    mySon.focus() ;

    <p id="5"> AMEN</p>

    mY paragraph(id=5) is in mySon.htm. paintRed() is in main.htm

    My purpose is to change the bgcolor of the paragraph in myson.htm using the paintRed() method. what is the correct syntax to make it work?


    thanx a lot
    :rolleyes:
     
    progfrog, Feb 10, 2008 IP