KyaPoocha.com

Huge Collection of Interview Questions


Archive for July, 2006

What does undefined value mean in javascript? 

Undefined value means the variable used in the code doesnt exist or is not assigned any value or the property doesnt exist.  Read more »

What does javascript null mean? 

The null value is a unique value representing no value or no object. It implies no object,or null string,no valid boolean value,no number and no array object.  Read more »

Name the numeric constants representing max,min values 

Number.MAX_VALUENumber.MIN_VALUE  Read more »

How to comment javascript code? 

Use // for line comments and /* */ for block comments  Read more »

How to hide javascript code from old browsers that dont run it? 

Use the below specified style of comments or Use the some html code tags and code the display html statements between these and this will appear on the page if... Read more »

Can javascript code be broken in different lines? 

Breaking is possible within a string statement by using a backslash \ at the end but not within any other javascript statement. that is , document.write(”Hello... Read more »

What is a prompt box? 

A prompt box allows the user to enter input by providing a text box.  Read more »

What is the difference between an alert box and a confirmation box? 

An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.  Read more »

How to access an external javascript file that is stored externally and not embedded? 

This can be achieved by using the following tag between head tags or between body tags. where abc.js is the external javscript file to be accessed.  Read more »

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... 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... Read more »

How to set a HTML document’s background color? 

document.bgcolor property can be set to any appropriate color.  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... 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... Read more »

How to detect the operating system on the client machine? 

In order to detect the operating system on the client machine, the navigator.appVersion string (property) should be used.  Read more »

Page 25 of 28« First...«2324252627»...Last »