+ 1
Html template
Hello guys, please I do have a question, how to display html template by using onclick button Function in javascript?
6 Answers
+ 3
html:
<button id = "btn" onclick = "func">click</button>
Js:
function func() {
alert("hello");
}
+ 2
"The <template> tag is used as a container to hold some HTML content hidden from the user when the page loads." source W3schools
https://www.w3schools.com/tags/tag_template.asp
HTML Tag Reference
https://www.w3schools.com/tags/default.asp
+ 1
Html template: is something that it doesn't show in the browser until you press the button
0
No!
My question is, how to display TEMPLATES?
0
Thanks, the problem is that I want to write everything in html