Skip to content

Instantly share code, notes, and snippets.

@geoffreymcgill
Created October 9, 2017 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffreymcgill/eaa2988aa5a88a959533eb4e74d1c01e to your computer and use it in GitHub Desktop.
Save geoffreymcgill/eaa2988aa5a88a959533eb4e74d1c01e to your computer and use it in GitHub Desktop.
// 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