Web Technology Questions

Q:

What are the ways to change the cookie setting using the web browser?

Answer

The cookie settings include the enabling and disabling of the services that are used with the web browsers.


The following steps are taken to set the cookies:


- The TOOLS menu is being opened on web browser and the privacy tab is selected from where the privacy of individual user can be managed. 


- Using the ADVANCED tab the options to set the cookies will be visible and it will allow the overriding of cookie. 


- The cookies can be accepted by checking the first party cookies or the third party cookies. Out of these choices the first party cookies provide more security. 


- Check the checkbox for "Always allow session cookies" so that the session cookies can be maintained. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1508
Q:

How to set the cursor to wait in JavaScript?

Answer

The cursor can set to wait in JavaScript by using the property ‘cursor’ property. The following example illustrates the usage.


window.document.body.style.cursor = "wait"; 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1507
Q:

How to create arrays in JavaScript?

Answer

Arrays are created by using new Array() in Java Script.


For example : var employees = new Array();


The elements to this array is assigned as follows :


employees[0] = "Kumar"


employees[1] = "Fedrick"

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1502
Q:

What is the use of Name based hosting?

Answer

- Name based is the virtual hosting that allows the virtual hosts to serve multiple hostnames that runs on single machine and having only one IP address.


- This is used when the web browser is used to request the resource from the server then the server respond using the hostname. 


- Web server uses HTTP protocol to respond to the requested hostname as the part of the request. 


- The server contains all the information of the website and the user that requests for the resources given. 


- Name based web hosting includes the resources and services that need to be given at the time of client’s request.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1499
Q:

Where are cookies actually stored on the hard disk?

Answer

The storage of cookies on the hard disk depends on OS and the browser. The Netscape navigator on Windows, the file cookies.txt contains all the cookies. The path is :


c:\Program Files\Netscape\Users\username\cookies.txt


 


The Internet Explorer stores the cookies on a file by name username@website.txt is


c:\Windows\Cookies\username@Website.txt

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1486
Q:

How to Accessing Elements using javascript?

Answer

The elements of JavaScript are accessed by their names. By default the browser is accessed by the element ‘windows’ and the page by ‘document’. The corresponding element has user defined names for forms and its elements. For example


var pwd = windows.document.frmLogin.password.value;


assigns the value of the password field of the form fromLogin in the current document, where password is the name of the element and frmLogin is the name of the form. Like wise any form element is accessed.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1481
Q:

What are the different web browser tools available to accelerate the speed of the web page?

Answer

- Web accelerators are used to increase the loading of the web page faster and by providing extra features of caching, etc. 


- There are tools that are provided like internet accelerator of browser accelerator that provides security from the spyware and adware programs. 


- The security from the programs are required as they are harmful for the computer and the tools uses the strategies of pre-caching in which the data is automatically cached and when the website is opened again then the fetching is being done from the place where the content is saved. 


- Registry tweaks are used to improve the performance offering the risk management techniques for downloading the resources.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1475
Q:

Which method is used to draw an image on the canvas?

Answer

drawImage(image,x,y) method is used to draw an image on the canvas.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1452