Design scheme 1:
To make a button in JavaScript start the code with a less than sign and the word "button". After the word "button" write this: 'button type="button" onclick="document.write( value )">Try it. End the line of code with another less than sign, /button, and closed with a greater than sign. The words 'value' and 'Try it' can be replaced with any word or number you want to use.
Design scheme 2:
To make a button in JavaScript start the code with a less than sign and the word "button". After the word "button" write this: 'button type="button" onclick="document.write( value )">Try it. End the line of code with another less than sign, /button, and closed with a greater than sign. The words 'value' and 'Try it' can be replaced with any word or number you want to use.
Design scheme 3:
To make a button in JavaScript start the code with a less than sign and the word button. After the word button write this: 'button type="button" onclick="document.write( value )">Try it. End the line of code with another less than sign, /button, and closed with a greater than sign. The words 'value' and 'Try it' can be replaced with any word or number you want to use.