Page 218 - Web Applications (803) Class 12
P. 218

<input type="text" id="input1" onfocus="changecolour()">
                  </body>
                  </html>
              Output of the preceding program is as follows:















                                                                                                    Subject Enrichment

                        Video Session


                   Watch the following video to learn to write more event driven programming programs: How to
                   write Event - Driven JavaScript program?
                   https://www.youtube.com/watch?v=9tA5RY3g54I






                3.15 CASE STUDY

              Case Study 1 : Online Shopping

              This part takes an online shopping website into consideration. Online shopping refers to buying goods or
              services at any time, from anywhere, over the Internet. Online shopping, sometimes known as e-shopping,
              is a type of electronic commerce that enables customers to make direct purchases from sellers over the
              Internet using a computer browser. E-web-store, e-shop, e-store, Internet shop, web-shop, web-store, online
              store, online storefront, and virtual store are some alternative names. Online shopping has become more and
              more popular over time, largely because consumers find it convenient and simple to shop for deals from the
              comfort of their home or place of business. The idea of JavaScript can be used by the students to create a
              for-profit website. Students may follow the following guidelines while creating an online website:

                JavaScripts can be used to create a home page that specifies the login page and product information.
                The user account information, product information, availability information, price tags, and discounts (if
                 applicable) (for some specific deal) are all included on the main page.

                According to the preferences of customers or users, either user may login or register on the website.
                 JavaScript will be used on the registration page to validate users, such as those who have a valid e-mail id
                 to verify their identity.
                Link the other pages with the home page, which will display information about the products and transaction
                 data, after the login page.

                Each user’s session begins anew after logging in for a set period of time, and it ends when they log out or
                 leave the website idle for a while.


                216   Touchpad Web Applications-XII
   213   214   215   216   217   218   219   220   221   222   223