How do I make a button In JavaScript, and how do I put it somewhere? | SoloLearn: Learn to code for FREE!

0

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

Can someone plz explain

11/12/2018 3:35:59 AM

Joshua

2 Answers

New Answer

+10

In script tag : Info = "JS Button"; document.write('<button id="button1" onclick="alert(Info);">Button</button>');

0

thanks