Client-side scripting: Difference between revisions

Content deleted Content added
VBScript was redifined as "server-side" rather than "client-side" because it is used almost exclusively as a server side script for active server pages. It is rarely ever used as a client-side script.
No edit summary
Line 3:
Web authors write [[client-side]] scripts in languages such as [[JavaScript]] ([[Client-side JavaScript]]), which is based on several standards:
 
sasasassa
*[[HTML scripting]]
*[[HTTP]]
*[[Document Object Model]]
 
Client-side scripts are often embedded within an [[HTML]] document, but they may also be contained in a separate [[Computer file|file]], which is referenced by the document (or documents) that use it. Upon request, the necessary files are sent to the user's computer by the [[web server]] (or servers) on which they reside. The user's [[web browser]] [[Execution (computers)|executes]] the script, then displays the document, including any visible output from the script. Client-side scripts may also contain instructions for the browser to follow if the user interacts with the document in a certain way, e.g., clicks a certain button. These instructions can be followed without further communication with the server, though they may require such communication.