how we call function in JavaScript?,Java, C ,C++, ASP, 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
how we call function in JavaScript?

I have given you Example which show you how to call function in JavaScript.


<script language=\"javascript\" type=\"text/javascript\">
//Here I Declare Function
function fun()
    alert(\"function called\");
//Here I call function from the script
//call function is called when click on button.
<input type=\"button\" onclick=\"fun()\"/>

More interview questions and answers

What collection will you use to implement a queue?

Explain Map Interface.

What are the two types of Map implementations available in the Collections Framework?

What is the difference between HashMap and TreeMap?

Explain the functionality of Vector Class?

What does the following statement convey? Vector vt = new Vector(3, 10);

How do we store a primitive data type within a Vector or other collections class?

What is the difference between Vector and ArrayList?

How do I make an array larger?

Which is faster, synchronizing a HashMap or using a Hashtable for thread-safe access?

In which package would you find the interfaces amd claases defined in the Java Collection Framework

What method in the System class allows you to copy eleemnts from one array to another?

When using the System.arraycopy() method,What exception is thrown if the destination array is smaller than the souce array?

What is the use of GregorianCalendar class?

What is the use of SimpleTimeZone class?

What is the use of ResourceBundle class

Which java.util classes and interfaces support event handling?

What is the purpose of the enableEvents() method?

What is the difference between yielding and sleeping?

When a thread blocks on I/O, what state does it enter?

When a thread is created and started, what is its initial state?

What invokes a thread�s run() method?

What invokes a thread�=s run() method?

What method is invoked to cause an object to begin executing as a separate thread?

What is the purpose of the wait(), notify(), and notifyAll() methods?

What happens when a thread cannot acquire a lock on an object

How does multithreading take place on a computer with a single CPU?

What happens when you invoke a threads interrupt method while it is sleeping or waiting?

What state is a thread in when it is executing?

What are three ways in which a thread can enter the waiting state?

What method must be implemented by all threads?

What are the two basic ways in which classes that can be run as threads may be defined?

How can you store international / Unicode characters into a cookie?

How to use Special Characters in JavaScript?

JavaScript is an Object Oriented Programming language or not?

How to use Methods in JavaScript?

How to use String Object in JavaScript?

How to use Date Object in JavaScript?

How to use Array Object in JavaScript?

How to use Boolean Object in JavaScript?

How to use Math Object in JavaScript?

How you use RegExp Object in JavaScript?

How to use test(),exec() and compile() methods of RegExp Object?

How you perform Validation from JavaScript?

Why we use NAN function?

Write Boolean Operator that was supported in JavaScript?

What is the Keyword?

How to implement Time Control in JavaScript?

Which characters may be used as the second character of an identifier,but not as the first character of an identifier?

how we call function in JavaScript?

How does Java handle integer overflows and underflows?

What modifiers may be used with an inner class that is a member of an outer class?

What is the difference between the >> and >>> operators?

Which method of the Component class is used to set the position and size of a component?

How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?

How we get value using JavaScript?

How you can perform restriction for user not to copy web page in JavaScript?

What is the main difference b/w Client Side JavaScript and Server Side JavaScript?

How to add Dynamic combo box at runtime in JavaScript?

What is the negative infinity?

What\'s Ad Hoc Testing ?

Whats the Accessibility Testing ?

What\'s the Alpha Testing ?

What\'s the Beta Testing ?

What is Component Testing ?

What\'s Compatibility Testing ?

What is Concurrency Testing ?

What is Conformance Testing ?

What is Context Driven Testing ?

What is Data Driven Testing ?

What is Conversion Testing ?

What is Dependency Testing ?

What is Depth Testing

What is Dynamic Testing ?

What is Endurance Testing ?

What is End-to-End testing ?

What is Exhaustive Testing ?

What is Gorilla Testing ?

What is Installation Testing ?

What is Localization Testing ?

What is Loop Testing ?

What is Mutation Testing ?

What is Monkey Testing ?

What is Positive Testing ?

What is Negative Testing ?

What is Path Testing ?

What is Performance Testing ?

What is Ramp Testing ?

What is Recovery Testing ?

What is the Re-testing testing ?

What is the Regression testing ?

What is Sanity Testing ?

What is Scalability Testing ?

What is Security Testing ?

What is Stress Testing ?

What is Smoke Testing ?

What is Soak Testing ?

What\'s the Usability testing ?

What\'s the User acceptance testing ?

What\'s the Volume Testing ?

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