Last active
November 21, 2017 08:27
-
-
Save putheakhem/615a8f2b141b5ed7c7a0243244932d8a to your computer and use it in GitHub Desktop.
Here is a sample html file with a submit button. Now modify the style of the paragraph text through javascript code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS DOM paragraph style</title> | |
</head> | |
<body> | |
<p id ='text'>JavaScript Exercises - by Mr Khem Puthea</p> | |
<div> | |
<button id="jsStyle" | |
onclick="js_style()">Style</button> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment