Searching for "he"

Q:

Which of the following navigator object properties is the same in both Netscape and IE?

A) navigator.appCodeName B) navigator.appName
C) navigator.appVersion D) None of the above
 
Answer & Explanation Answer: A) navigator.appCodeName

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

The syntax of capture events method for document object is..

Answer

captureEvents(eventType)

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

Which of the following is added to prefs.js,when open a dialog box each time an error occurs?

A) user_pref("javascript.classic.error_alerts", true); B) user_pref("javascript.classic.error_alerts ", false);
C) user_pref("javascript.console.open_on_error ", false); D) user_pref("javascript.console.open_on_error ", true);
 
Answer & Explanation Answer: A) user_pref("javascript.classic.error_alerts", true);

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

How do you put a message in the browser's status bar ?

A) status("put your message here") B) window.status = "put your message here"
C) statusbar = "put your message here" D) window.status("put your message here")
 
Answer & Explanation Answer: B) window.status = "put your message here"

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

Which of the following is not considered a JavaScript operator?

A) new B) this
C) delete D) typeof
 
Answer & Explanation Answer: B) this

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

What is the correct JavaScript syntax to write “Hello World”?

A) System.out.println( B) println (
C) document.write( D) response.write(
 
Answer & Explanation Answer: C) document.write(

Explanation:

document.write() is a JavaScript command that literally writes out whatever you place between the opening and closing parentheses.

 

 

What_is_the_correct_JavaScript_syntax_to_write_“Hello_World”1556279922.jpg image 

Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

Which of the following can't be done with client-side JavaScript?

A) Sending a form's contents by email B) Storing the form's contents to a database file on the server
C) Validating a form D) None of the above
 
Answer & Explanation Answer: B) Storing the form's contents to a database file on the server

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

What are the different objects used in JavaScripts?

Answer

JavaScripts uses a hierarchical structure that applies to the objects in a document. There are some objects that show the relationship of one object to another using the language.

Window object: This is the topmost object in the hierarchy. It represent the content area of browser window that consists of HTML documents. Each frame is also a window that has some actions inside it.


Document object: This object gets loaded in a window and consists of objects of different kind in the model. It consists of the content that will be written in the script.

Form object: Form objects are used for more interaction with the users. It represents the form elements inside <FORM>...</FORM> tag.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology