[Solved] Complete change and adding of content in webpage [closed]


Assuming you have something like this:

<div id="somecontent"><video ...><p>Video Caption</p></div>

You can use simple DOM scripting to select the element and replace its contents:

<script>
  var element = document.getElementById("somecontent");
  element.innerHTML = "<audio><p>New Caption</p>"
</script>

You would then tie this replacement to the onclick event of an input or a link styled to look like a button.

Hope this helps.

2

solved Complete change and adding of content in webpage [closed]