Tag: append

  • Append a JavaScript code to DOM and run it

    When you have a user input box to promote to the frontend with plain JavaScript, attached via JSON-P or other approach serving JSON, there are few hints for appending. For instance, we have a script tag that has to generate a dynamic content. We need to locate it somehow, two possible approaches are: 1) pulling…