Javascript Tutorial Part 12

myitcareer.org-Your IT Career Partner For Life. Please Bookmark It.
Homework Help | Buy Book | Buy Phone | Top Web Hosts | Hire Web Designer
Home | Interview Questions And Answers | Plan Wedding | Online Tuition
Top Domain Registrars | Hire Freelancer | Hosting Charges | Hindi News

if (bname.indexOf("Netscape")!=-1)
{ window.location="tryjs_netscape.htm" return } if (bname.indexOf("Microsoft")!=-1)
{ window.location="tryjs_microsoft.htm" return } window.location="tryjs_other.htm"
}
</script>
</head>
<body>
<form>
<input type="button" onclick="redirectme()" value="Redirect">
</form>
</body>
</html>

E-Mail schicken:
<html>
<head>
<script language="JavaScript">
function validate()
{
at=document.forms[0].email.value.indexOf("@")

if (at<0)
{
alert("Not a valid e-mail")
document.forms[0].action="tryjs_email.htm"
}
}
</script>
</head>
<body>
<form onsubmit="validate()" action="tryjs_rightpage.htm">
<input type="text" name="email" size="30">
<input type="submit" value="Validate">
</form>
</body>
</html>

Change Url:

<html>

<frameset cols="70%,*" frameborder="1">
<frame name="leftframe" src="tryjs_threeframes_sourcepage.htm"> There are two major components in the ecosystem [Figure 1], the hand held smart phone based decision support system for ASHA worker and the backend context sensitive health telemetry platform which provides rule updates and alert based on the data it receives from the hand held device. Based on the demographic data of the patient (man, woman, child and age), the decision support system selects the appropriate guidelines which prompts the ASHA worker to capture the relevant observations from the patient. If required, some of the vital signs are also captured with the help of portable sensors which feed data directly via a Bluetooth connection. Once all the data is captured, the disease rule sets are run and based on the results of the rules and the context (e.g. location, skill of the ASHA worker, availability of drugs), the system provides treatment recommendations.
Previous| Next