Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client-side JavaScript
Client-side JavaScript is the most common form of the language. The script should be included in or referenced by an HTML document for the code to be interpreted by the browser. Suppose you load a web page with a JavaScript-generated banner. The browser begins interpreting the HTML code and then encounters a JavaScript script. If the script has no syntax errors, it is executed by the browser’s built-in interpreter. This is the most common method of implementing JavaScript because it is the easiest. Just write your scripts directly into the HTML and you are done.

The JavaScript client-side mechanism features many advantages over traditional CGI server-side scripts. For example, you might use JavaScript to check if the user has entered a valid e-mail address in a form field. The JavaScript function is executed when the user submits the form, and only if the entry is a valid e-mail address (includes an @) is the form transmitted to the server for further processing, database storage, and so on. In this case,the user does not need to wait until the form is submitted over the network to the server and back to the client, only to be informed that a required character is missing.

Possibly Related Threads...
Thread Author Replies Views Last Post
  What is called as negative infinity in JavaScript? sulbha 9 127 10-16-2017, 10:54 PM
Last Post: touchstone
  What are all the types of Pop up boxes available in JavaScript? sulbha 1 18 10-05-2017, 07:45 PM
Last Post: Martinricky
  How to Open Popup using javascript tonnygrand 2 99 01-17-2017, 01:33 AM
  what is bind() method in javascript? Brianvoges 3 235 03-14-2016, 12:11 AM
Last Post: har.sinha
  How can JavaScript be used to personalize or tailor a Web site to fit individual user being.chinmay 0 106 02-08-2016, 10:27 PM
Last Post: being.chinmay
  What can javascript programs do? being.chinmay 0 93 02-08-2016, 10:13 PM
Last Post: being.chinmay
  In what case we cannot recommend WordPress to our client? being.chinmay 0 144 02-01-2016, 07:16 PM
Last Post: being.chinmay
  Using PHP variables with JavaScript being.chinmay 0 87 12-28-2015, 09:32 PM
Last Post: being.chinmay

Forum Jump:

Users browsing this thread: 1 Guest(s)