Created
June 16, 2020 17:03
-
-
Save imansigupta/bf1dc913ce7aa9693f4aa13cb58edfa9 to your computer and use it in GitHub Desktop.
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
<p id="content_styler"> | |
Electron enables you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs. You could see it as a variant of the Node.js runtime that is focused on desktop applications instead of web servers. | |
</p> | |
<button id="activate_button" onclick="performFunction()">Click Me!</button> | |
<script> | |
function performFunction() { | |
var p = document.getElementById("content_styler"); | |
p.innerHTML = "I am the changed text"; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment