risktaker
10-13-2008, 06:15 PM
I have two frames one is the editor frame and one is the viewer frame
I need to create a JavaScript function copyTo(ID) that copies the content of an
editing text area into an element of the viewer frame specified by the parameter ID, and, conversely, a function copyFrom(ID) that copies the content of the specified element of the viewer frame into the editing text area. When the ID is ‘body’, it refers to the body of the display frame.I am supposed to use the innerHTML attribute of the element.
Can anybody help me please?
I need to create a JavaScript function copyTo(ID) that copies the content of an
editing text area into an element of the viewer frame specified by the parameter ID, and, conversely, a function copyFrom(ID) that copies the content of the specified element of the viewer frame into the editing text area. When the ID is ‘body’, it refers to the body of the display frame.I am supposed to use the innerHTML attribute of the element.
Can anybody help me please?