Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript functions to copy from html elements

    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?

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Wow, want us to your your job or homeowrk for you?

    Show us what you have done.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •