glad u got it :) I used my php knowledge, becoz basically I dunno Java ! :(
from alert(x + 'this .....') u can get the email which is entered in the box
<html>
<head>
<script type="text/javascript">
function CheckMyEmail()
{
var x=document.forms["myForm"]["email"].value;
var value=("BC102034568");
var at=x.indexOf("@");
var dot=x.lastIndexOf("vu.edu.pk");
if (at<1 || dot<at+1 || dot+2>=x.length)
{
alert("This is Not your valid VU e-mail...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.