Git Product home page Git Product logo

redalert_js's Introduction

Red Alert

In this project, we will be working with basic Javascript and HTML concepts to understand how we can attach functionality to our User Interface.

Objective

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.

Requirements

To complete this project you will need:

  • Sublime text
  • Chrome

Desired Outcome

at the completion of this exercise, you should understand:

  • HTML elements
  • Javascript Event Handling
  • the alert() browser function

New concepts

  • Event handling
  • Browser functions
  • Linking js externally inside an HTML doc

Your Challenge

  1. Fork this repo
  2. Inside your root folder, git clone [url] your newly forked repo found in your git account.
  3. Create an index.html page
  4. Create a js folder and an app.js file in the root of redAlert.
  5. Create a reference to your app.js file from your index.html file.
  6. Create the structure of your index.html along with your or tag
  7. 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
  8. Dont forget to write a 'string' inside the alert() method.
Extra 1 point
  1. Make your string alert dynamic

Resources

redalert_js's People

Contributors

heeyjessii avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.