NicheTech is the best software company in Ahmedabad . We are helping GTU students in live project training Ahmedabad . NicheTech has trained more than 600 GTU students in Ahmedabad . PHP Training Ahmedabad , PHP course Ahmedabad , PHP classes Ahmedabad
Live Project Training Ahmedabad : http://www.liveprojecttraining.in/
2. • JavaScript is basically used for the validation purpose, In
such a situation it is necessary that user will give correct
input to the application. For example correct format of
email ID, Correct phone number format, name should
not be null, etc.
• Java script is very easy to use and write in the application.
In javascript there is only one data type that is VAR.
• In javascript we can display message using ALERT
function. So it will display message box with ok button.
Prepared By, NicheTech, NicheTech Com.Sol.Pvt.Ltd( http://www.nichetechinstitute.com/)
4. • Create one .php page using Adobe Dreamweaver
• Javascript basically written after the closing of </title>
and before the ending of </head>
• <script type="text/javascript" language="javascript">
</script>
• All the code for javascript written in between <script>
tag….
Prepared By, NicheTech, NicheTech Com.Sol.Pvt.Ltd( http://www.nichetechinstitute.com/)
5. • In the slide 3 I have write code… which contain one
function hi()
{
alert(“Display the mess”);
}
• As you know that when we are interested to execute the
code which is written inside function body … the function
call is necessary…
Prepared By, NicheTech, NicheTech Com.Sol.Pvt.Ltd( http://www.nichetechinstitute.com/)
6. • <input type="text" value="ok" onclick="hi()"/>
• When we click on the button at that time it will try to
execute the code which is written in the “hi()” function
Prepared By, NicheTech, NicheTech Com.Sol.Pvt.Ltd( http://www.nichetechinstitute.com/)
7. • You can see in the previous slide … when we run the page
and click on the button it will execute the function
“hi()”and the alert message generate.
• So this is how the javascript works…
Prepared By, NicheTech, NicheTech Com.Sol.Pvt.Ltd( http://www.nichetechinstitute.com/)