Priti's Technical Corner

December 7, 2008

Javascript faqs

Filed under: Others — Tags: , , , — pritisolanki @ 9:38 am

Question 1:
Consider
<input type=”text” id=”txtname” value=””/>
In javascript how you will identify this field ??.
Answer 1:
Document.getElementById(‘txtname’)

Question 2: How to read HTML or XML tags in javascript ?
Answer   2: use getElementBytags(‘tagname’)

Question 3: What is DOM (Document Object Model).
Answer 3:  It represent the structure of web page as a set of programmable objects that can be manipulated with JavaScript.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: