View Full Version : Javascript functions to copy from html elements

10-13-2008, 07: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?

10-13-2008, 07:27 PM
Wow, want us to your your job or homeowrk for you?

Show us what you have done.