Skip to content

Instantly share code, notes, and snippets.

@imansigupta
Created June 16, 2020 17:03
Show Gist options
  • Save imansigupta/bf1dc913ce7aa9693f4aa13cb58edfa9 to your computer and use it in GitHub Desktop.
Save imansigupta/bf1dc913ce7aa9693f4aa13cb58edfa9 to your computer and use it in GitHub Desktop.
<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