0

How do I make a button In JavaScript, and how do I put it somewhere?

Can someone plz explain

12th Nov 2018, 3:35 AM
Joshua
2 Réponses
+ 10
In script tag : Info = "JS Button"; document.write('<button id="button1" onclick="alert(Info);">Button</button>');
12th Nov 2018, 4:20 AM
Nova
Nova - avatar
0
thanks
12th Nov 2018, 4:20 AM
Joshua