Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
JohnAdemoye.html Correction on Second Ajax Request and Interactive Web Pages (#40) Oct 29, 2019
Oluwaseyi.html
README.md Correction on Second Ajax Request and Interactive Web Pages (#40) Oct 29, 2019

README.md

Project JavaScript N1 Interactive Web Pages

Topics: The document keyword , Tweak an Element , Select and Modify Elements , Style an element , Create and Insert Elements , Remove an Element , Interactivity with onclick , Traversing the DOM , What is an Event? , "Firing" Events , Event Handler Registration , Adding Event Handlers , Removing Event Handlers , Event Object Properties , Event Types , Mouse Events , Keyboard Events

Project Title: Lucky Numbers

  1. Create a html file with your name like john.html
  2. Add current code to that file:
<!DOCTYPE html>
<html>
  <body>
    <script>
      // your code here
    </script>
  </body>
</html>
  1. Create a h1 with "Lucky Number" text.

  2. Create a button set caption to lucky number. When user click on it alert a random number between 1 to 10.

  3. Create another button set caption to Guess Number. It prompt a number from user and check if it equal to lucky number alert "You won" else aler "You lose."

  4. After 10 seconds of loading page, show a small banner at the top of the page and show this message: " You are winner . Do not give up" Put a close button next to banner and remove the banner when user click on it.

Want to get reviewed?

Send Pull Request. Check how to deliver your code: https://codingwithbasir.com/how-to-deliver-projects/

Need help?

Download Learn JavaScript eBook from https://codingwithbasir.com/learn-javascript

You can’t perform that action at this time.