Using JavaScript to add interactive capabilities to Web pages

Using JavaScript to add interactive capabilities to Web pages






JavaScript is one of the easy, versatile and efficient languages that are used to extend the functionality in the website (Druckman, Kifer & Parkin, 2007).  It has several merits that include the fact that it is executed on the clients’ side hence saving the bandwidth and the strain that might come when performed on the other side. It is also a relatively easy language to learn, and it comprises of syntax that is probably close to the English language, and it uses the DOM structure that comprises of most prewritten functionality to the various objects on the pages. Moreover, it is relatively fast since the codes are executed on the computer of the user, and hence the result and processes are done almost instantly depending on the task.  The task in the JavaScript on most of the web pages is as often simple to prevent the ease of being a memory hog. Additionally, it has extended functionality to the internet pages.


On the other hand, the disadvantages of using the JavaScript involves the security issue since the snippets once attached on web pages executes on the server of the clients very fast and therefore there is the possibility for that to be used to exploit the user system. Moreover, even if the restrictions are added, the malicious codes can still be found.  The other disadvantage is that its rendering varies on the fact that various layout engines may give different results that may lead to inconsistency. According to the IT departments, even though the latest version of JavaScript and rendering has been improved towards the universal standard, particular variations still exist in the process (Druckman, Kifer & Parkin, 2007).


Druckman, J. N., Kifer, M. J., & Parkin, M. (2007). The technological development of congressional candidate web sites: How and why candidates use web innovations. Social Science Computer Review, 25(4), 425-442.

All Rights Reserved,