Loading ...
Sorry, an error occurred while loading the content.

Re: DOM manipulation

Expand Messages
  • silviadiferente18
    Message 1 of 4 , Dec 30, 2008
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "firmani.maurizio"
      <firmani@...> wrote:
      >
      > How do I add element such <form> or <a> to the DOM using the YUI way?
      >
      > I know how to create a <span>, <div> or a textnode. For instance:
      >
      > var elSpan = document.createElement("span");
      > var elText = document.createTextNode("This is a text node");
      > elSpan.appendChild(elText);
      >
      > but how do I add an element like:
      > <a href="url">link</a>?
      >
      > TIA
      >
      > Maurizio
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.