In this project, we will be working with basic Javascript and HTML concepts to understand how we can attach functionality to our User Interface.
Create a simple working application using, HTML, JavaScript Logic, Events to create a button on our webpage. When the user clicks on that button, they will receive a visual indicator that they clicked the button.
To complete this project you will need:
- Sublime text
- Chrome
at the completion of this exercise, you should understand:
- HTML elements
- Javascript Event Handling
- the alert() browser function
- Event handling
- Browser functions
- Linking js externally inside an HTML doc
- Fork this repo
- Inside your root folder, git clone [url] your newly forked repo found in your git account.
- Create an index.html page
- Create a js folder and an app.js file in the root of redAlert.
- Create a reference to your app.js file from your index.html file.
- Create the structure of your index.html along with your or tag
- In your app.js, write an event handler function to listen for the onclick event and use the alert() method to notify the user they have clicked on the button
- Dont forget to write a 'string' inside the alert() method.
- Make your string alert dynamic