The Java and Java-Script are totally different languages in both concept wise and design,The Java is developed by Sun Microsystems,which is a powerful and much more complex programming language which is the same category as C and C++.
This is the starting stage of java-script and you can do it using html
You can find the tutorial at 'W3SCHOOLS' - http://www.w3schools.com/JS/default.asp
In this you can try the example for yourself referring some given examples in the site.
Most commonly used scripts are alert,functions,if-else conditions.
Alert - alert("Alert warnings"); place this in your script part an alert appears on the event you place.
Functions - To maintain the browser from executing an script when the page loads, Its better to put your script into a function.
A function contains the code that will be executed by an event / by a call to the function.It is possible to call a function from anywhere within a page .
The Functions can be defined in both and the section of an document.To make sure that a function is read/loaded by the browser before it is called,It could be better to place functions in the section.
example:
function function_name(var1,var2,...,varX)
{
You codes..............
}
{
You codes..............
}
RBN-INFO-TECH
No comments:
Post a Comment
Post your Doubts