There are many features for JavaScript such as [1]:
•
Interact with the HTML forms:
This is an important feature as it interacts with HTML forms. This feature is provided by the Form object andthe form element objects it can contain like: Button, Checkbox, Radio ...etc.
•
Handles Dynamic Effects:
JavaScript is a powerful scripting language which has features to achieve dynamic effects in web pages.
•
Control the Browser:
There are many JavaScript objects that allow control over the behavior of the browser. For instance, The
Window
object supports methods to show dialog boxes, to display simple messages to the user or messagesthat in the status line of any browsers window, and get simple input from the user. The
Location
object allowsdownloading and displaying the contents of any URL in any window or frame of the browser. The
History
object enables moving forward and back within the user's browsing history, simulating the action of thebrowser's Forward and Back buttons. The
Screen
object provides information about the size and colour depthof the monitor on which the web browser is being displayed.
•
Control Document Appearance and Content:
The JavaScript Document object, through its
write( )
method allows writing arbitrary HTML into a documentas the document is being parsed by the browser. For example, you can include the current date and time in adocument or display different content on different platforms. Also, using the Document object generatedocuments entirely from scratch.
•
Interact with the User:
An important feature of JavaScript is the ability to define event handlers. For example, move the mouse overa link, enter a value in a form, or click the Submit button in a form. This event-handling capability is important;because programming –for example- HTML forms, inherently requires an event-driven model.
2.3JavaScript Security
Any time that programs (such as JavaScript scripts) are included within shared documents, particularlydocuments that are transmitted over the Internet or by email, there is a potential for viruses or other maliciousprograms [2].JavaScript has its own security model. This security model is designed to protect the user from maliciousWeb sites, and as a result, it enforces roles on what the page author is allowed to do. Moreover, it is notplanned to replace proper security measures, and should never be used in place of proper encryption [3].JavaScript has a great feature in security that does not provide any way to write or delete files or directorieson the client computer. With no File object and no file access functions, a JavaScript program cannot delete auser's data or place viruses on the user's system [2].
In addition, JavaScript has no networking primitives of any type. A JavaScript program can load URLs andcan send HTML form data to web servers, CGI scripts (Common Gateway Interface), and email addresses,but it cannot create a direct connection to any other hosts on the network. This means, for example, that aJavaScript program cannot use a client's machine as an attack platform from which to attempt to crackpasswords on another machine [2].From a privacy point of view, when you browse the Web, one of the pieces of information you are by defaultagree to release about yourself is which web browser you use. As a standard part of the HTTP protocol, a2
Leave a Comment