Page 320 - Webapplication11_C11_Flipbook
P. 320

4.6 PREREQUISITES FOR EXECUTING JAVASCRIPT PROGRAMS

              One of the greatest advantages of JavaScript is that you do not need to purchase any software to develop applications.
              Many tools for JavaScript development are available for free and can be easily accessed. At a minimum, you’ll need a
              simple text editor, such as Windows Notepad, to write your JavaScript code.

              In addition to basic text editors, HTML editors are useful for editing the HTML source code and incorporating JavaScript
              into  web  pages.  A  popular  example  is  Dreamweaver,  which  offers  a  range  of  features,  including  drag-and-drop
              functionality, making it easier to design and manage your projects visually. HTML editors often provide built-in tools
              for organising your files, managing your assets, and deploying your website to a server.
              For more advanced editing, tools like Microsoft Visual Web Developer Express provide enhanced features such as
              syntax highlighting, which colours important JavaScript keywords to improve readability. This tool also offers code
              validation to help identify errors and the ability to preview your changes in a web browser instantly.
              A web browser is also essential for executing JavaScript programs. Web browsers like Google Chrome, Mozilla Firefox
              and Microsoft Edge come with built-in JavaScript engines that interpret and run your code. Each browser has its own
              developer tools, typically accessible by pressing F12 or right-clicking on a page and selecting "Inspect." These tools
              allow you to debug your JavaScript code, view errors, and analyse performance. They also provide features like the
              Console, where you can test small snippets of JavaScript in real-time and see immediate results.

                 4.7 WEB BROWSER
              A browser is an application program that has a graphical user interface for displaying HTML files. It is used to browse
              the World Wide Web and gives users a method to view and interact with all of the information there. Firefox and
              Microsoft Edge are the two most widely used browsers. Apple Safari, Google Chrome, and Opera are some of the other
              popular browsers. JavaScript is incorporated into the browsing environment and has the ability to access and modify
              information about the browser and HTML sites, modifying how things are shown on your screen.

              Setting JavaScript in Internet Explorer

              Follow the given steps to turn on or turn off JavaScript in Internet Explorer:
              Step 1:  Click on the Tools icon. A drop-down menu appears.
              Step 2:  Select the Internet Options from the drop-down menu. The Internet Options dialog box appears.


























              Step 3:  Select the Security tab from the dialog box.

              Step 4:  Click the Custom Level button. The Security Settings - Internet Zone dialog box appears.


                318     Touchpad Web Applications-XI
   315   316   317   318   319   320   321   322   323   324   325