# Learn Web3 in 100 Days - Day 8: JS **Published by:** [xuanling11](https://paragraph.com/@xuanling11/) **Published on:** 2022-04-12 **URL:** https://paragraph.com/@xuanling11/learn-web3-in-100-days-day-8-js ## Content Photo by Manish Upadhyay on UnsplashThis article is sponsored by the MixPay Content Reward Program. MixPay is a decentralized crypto payment service platform built on Mixin Network. MixPay, Payment for Web3.Let’s explore deeper into JavaScript. Table of Contents Website Response Alert the Browser Code to Get-Random Color on the Website Background Change Button Color Web3 In Conclusion https://twitter.com/xuanling11/status/1513644391948165123?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1513644391948165123%7Ctwgr%5E%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Fcdn.iframe.ly%2Fapi%2Fiframe%3Furl%3Dhttps3A2F2Ftwitter.com2Fxuanling112Fstatus2F1513644391948165123v%3D1app%3D1api_key%3Df11b9fe9d88a3d54bbc74aiframe%3D1 Website Response One of the excitement of using JS or JavaScript is to make your website responsive. It gives your website a life that can interact with users. Such interaction occurs when users perform the actions below:Hovering the cursor over the textClicking a buttonPressing enter key on the keyboardAnd moreOne of the examples is onmouseover Event which when your mouse pointer onto an object said image, it will automatically execute a JS. Note that you create functions to describe how images change from small to large and from large to small. You can test here. Alert the Browser To activate the JS interaction, you need to put a tag to separate from HTML. Code to Get-Random Color on the Website Background The idea is to create a code to change the color of the website background randomly by clicking the button. Here is the code and reference code here: ` Change the Color! ## Publication Information - [xuanling11](https://paragraph.com/@xuanling11/): Publication homepage - [All Posts](https://paragraph.com/@xuanling11/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@xuanling11): Subscribe to updates - [Twitter](https://twitter.com/xuanling11): Follow on Twitter