Is a javascript script faster than an ASP script?

Yes.Since javascript is a client-side script it does require the web server’s help for its computation,so it is always faster than any server-side script like ASP,PHP,etc. The answer to whether a JavaScript script is faster than an ASP script depends on various factors such as the specific tasks being performed, the efficiency of the code, … Read more

What does the "Access is Denied" IE error mean?

The “Access Denied” error in any browser is due to the following reason. A javascript in one window or frame is tries to access another window or frame whosedocument’s domain is different from the document containing the script. In web development, the “Access is Denied” error in Internet Explorer typically occurs when JavaScript code running … Read more

How to set a HTML document’s background color?

Document.bgcolor property can be set to any appropriate color. To set the background color of an HTML document, you can use the CSS background-color property. Here’s how you would do it: htmlCopy code <!DOCTYPE html> <html> <head> <title>Background Color Example</title> <style> body { background-color: #ffcc00; /* You can use color names, hex values, RGB values, … Read more

What can javascript programs do?

Generation of HTML pages on-the-fly without accessing the Web server. The user can be given control over the browser like User input validation Simple computations can be performed on the client’s machine The user’s browser, OS, screen size, etc. can be detected Date and Time Handling. In a web development interview, when asked about what … Read more

Where are cookies actually stored on the hard disk?

This depends on the user’s browser and OS. In the case of Netscape with Windows OS,all the cookies are stored in a single file called cookies.txt c:\Program Files\Netscape\Users\username\cookies.txt In the case of IE,each cookie is stored in a separate file namely username@website.txt. c:\Windows\Cookies\username@Website.txt In web development interviews, when asked about where cookies are actually stored on … Read more