Java Script in Visualforce page
It is explaining how we are using the javascript invisual force. <apex:page controller="javascriptec" id="mypage"> <script> function clear() { } function myfunc() { // alert("i am in function"); var ks = document.getElementById("{!$Component.mypage.myform.myblock.mysection.item.fname}").value; var ln = document.getElementById("{!$Component.mypage.myform.myblock.lsec.litem.lname}").value; var ph = document.getElementById("{!$Component.mypage.myform.myblock.phones.phoneit.no}").value; var mal = document.getElementById("{!$Component.mypage.myform.myblock.mails.mailitem.mail}").value; count= ph.toString().length; if(ks=="" || ln == "") { alert("Please Enter Your Name"); } if(count<10 || count >10) { alert("Enter Valid Phone Number"); } var phoneno = /^[0-9]+$/; var maa= /^[a-zA-Z0-9._-]+@([a-zA-Z0-9.-]+\.)+[a-zA-Z0-9.-]{2,4}$/; var s=!(ph.match(ph...