Created
October 9, 2017 04:18
-
-
Save geoffreymcgill/eaa2988aa5a88a959533eb4e74d1c01e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Create a new Button Element | |
var button = new HTMLButtonElement(); | |
// Set the Button text | |
button.innerHTML = "Click Me"; | |
// Add a Click event handler | |
button.addEventListener("click", () => | |
{ | |
// Write a message to the Console | |
Console.WriteLine("Welcome to Bridge.NET"); | |
}); | |
// Add the button to the document body | |
document.body.appendChild(button); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment