Current Events > Is it possible to add video to a button html & javascript?

Topic List
Page List: 1
supermichael11
03/13/23 8:13:47 AM
#1:


I know how to create a button and I know the script to enable more text to appear such as this example:

function myFunction() {
document.getElementById("news").innerHTML = "insert text here";

}

<button onclick="myFunction()">News</button>

<p id="news"></p>

But is it possible for a video to appear, when someone press the button?

---
http://www.neoseeker.com/forums/88/ dragon ball forum
... Copied to Clipboard!
kirbymuncher
03/13/23 8:24:56 AM
#2:


check out document.createElement

---
THIS IS WHAT I HATE A BOUT EVREY WEBSITE!! THERES SO MUCH PEOPLE READING AND POSTING STUIPED STUFF
... Copied to Clipboard!
Topic List
Page List: 1