When we use JavaScript? ,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
When we use JavaScript?

We use JavaScript when we want to perform several things like this

  1. JavaScripts are simple pre compiled code.We use this code into the HTML pages to make interactive .It is easy to use. 
  2. Using JavaScript we can set dynamic text into the HTML page.Example:document.write(\"+text+\") 
  3. we can also set JavaSCript perform when some event happen means its automatically call when some special event execute.
  4. Using JavaScript we can read HTML element and changed the content of element. 
  5. Using JavaScript we can validate the data before sending to to the server.Means that we can reduce the server Urocessing before using JavaScript. 
  6. Using JavaScript we can identify the user\'s browser. 
  7. Using JavaScript we can also create the cookie and used this cookies to store and retrieve info on user\'s system.

More interview questions and answers

How you insert Style Sheet in the HTML document?

How to set background with CSS?

How to set CSS font?

How to create CSS Border?

How to set CSS Outlines?

How you define CSS Margin?

How you define CSS Padding?

What is double buffering ?

How you define relationships b/w CSS and HTML?

How you define CSS,CSS2 and CSS3?

How you define floating element in CSS?

How you define ruleset inCSS?

How you define First-line pseudo-element in CSS?

How you define at-rule in CSS?

Tell me about types of CSS rule?

What are the advantages of CSS?

Is CSS case-sensitive or not?

What is an event?

What is an event handler ?

Which containers use a border Layout as their default layout?

What method is used to specify a container\'s layout?

What is the difference between invokeAndWait() and invokeLater()?

Why should any swing call back implementation execute quickly?

Which method is used by the applet to recognize the height and width?

What is source and listener ?

What is controls and what are different types of controls in AWT?

What is the difference between choice and list?

What is the difference between scrollbar and scrollpane?

What is a layout manager and what are different types of layout managers available?

What is the JavaScript?

How are the elements of different layouts organized?

What are types of applets?

What are the restrictions imposed by a Security Manager on Applets?

What is the difference between the Font and FontMetrics classes?

What is the relationship between an event-listener interface and an event-adapter class?

How can a GUI component handle its own events?

What is the difference between the paint() and repaint() methods?

What interface is extended by AWT event listeners?

What is Canvas ?

What is default Look-and-Feel of a Swing Component?

What are the features of JFC?

What does x mean in javax.swing?

What are invisible components?

What is the default layout for a ContentPane in JFC?

What does Realized mean?

Is Java and JavaScript are same or not?

When we use JavaScript?

What are you understand about ECMAScript?

How to use JavaScript on HTML pages?

How to use comments in JavaScript?

In HTML where JavaScript will executed?

How to use an External JavaScript?

Is JavaScript Case-Sensitive or not?

How you define JavaScript Statement?

How you define JavaScript Code?

What is difference between Swing and JSF?

Why does JComponent class have add() and remove() methods but Component class does not?

What method is used to specify a container\'s layout?

What is the difference between AWT and SWT?

What is the difference between JFC & WFC?

What is a convertor?

What is the difference between a Canvas and a Scroll Pane?

What is the purpose of the enableEvents() method?

What is the difference between a MenuItem and a CheckboxMenuItem?

Which is the super class of all event classes?

How the Canvas class and the Graphics class are related?

What is the difference between a Window and a Frame?

What is the relationship between clipping and repainting?

What advantage do Java\'s layout managers provide over traditional windowing systems?

When should the method invokeLater() be used?

How you define JavaScript Blocks?

How we use JavaScript Comments?

How you define Javascript Variable?

How to create variable and assign value to those variables in JavaScript?

What is the diff b/w choice and the List ?

How you define JavaScript Operator?

Which component subclass is used for the drawing and painting ?

Which containers may have a menu bar?

Which class is the immediate supar class of the menuComponent class?

How you define Comparison and Logical Operators?

What is the relationship b/w the Canvas class and the Graphics Class?

How are the elements of a borderLayout organized?

How are the elements of a GridBagLayout organized?

How to use Conditional Statements in JavaScript?

Difference b/w paint() and paintComponent()?

Give us the Name of the List LayoutManagers in Java?

How you define Popup Boxes in JavaScript?

How we use functions in JavaScript?

How to define function in JavaScript?

What is the Collections API?

What is the List interface?

What is the Vector class?

What is an Iterator interface?

Which java.util classes and interfaces support event handling?

What is the GregorianCalendar class?

What is the Local class?

What is the SimpleTimeZone class?

What is the Map interface?

What is the highest-level event class of the event-delegation model?

What is the Collection interface?

R4R provides free online tutolrails ,examples for Freshers and experts .We cover core java, tutorials, spring, Hibernate, python, struts, struts 2,c language, spring boot,PHP,MYSQL,C#,ASP.NET,WPF,WCF,Photoshop , JSP, programming, example, Interview questions and answer