Page 324 - Webapplication11_C11_Flipbook
P. 324
Step 3: Click on Cookies and site permissions option from the Settings menu in the left pane.
Step 4: Scroll down and click on JavaScript. The JavaScript window opens.
Step 5: Toggle the slider to "on" or "allowed" if it is off.
Step 6: Close the Settings window. JavaScript is now enabled in Microsoft Edge.
How JavaScript Works on a Webpage?
JavaScript is a text-based programming language that can be used on both the client and server sides to make web
pages interactive.
The steps below demonstrate how JavaScript interacts with the web page:
1. A request is sent to the server when the user types an address or URL into the browser.
2. The server accepts the browser’s request and sends the page back to it.
3. The page is rendered for HTML tags and the contents are displayed by the browser.
4. If a page contains JavaScript code that is enclosed by tags, the code is handled by the JavaScript interpreter.
5. This code can handle user-initiated events such as clicking a button, rolling the mouse, or submitting a form,
among others.
6. It makes the web page interactive by detecting and responding to what is happening on the page.
7. It has the ability to modify the appearance of a web page or its contents dynamically.
8. It has the ability to read and authenticate cookies.
322 Touchpad Web Applications-XI

