Make your own free website on Tripod.com

Javascript Tutorial Part 13

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

<frameset rows="50%,*" frameborder="1"> <frame name="upperframe" src="../html/tryhtml_frame_a.htm"> <frame name="lowerframe" src="../html/tryhtml_frame_b.htm"> </frameset> </frameset>

</html>
<html>
<head>
<script language="JavaScript">
function changeurl()
{
parent.upperframe.location.href="html_frame_c.htm"
parent.lowerframe.location.href="html_frame_d.htm"
}
</script>
</head>
<body>
<form>
<input type="button" value="Change url"
onclick="changeurl()">
</form>
</body>
</html>

Alert:
<html>
<body>

<script language="JavaScript">
alert("Hello World!")
</script>

</body>
</html>

Confirm Box:
<html>
<body>

<script language="JavaScript">
var name = confirm("Press a button")
if (name == true)
{
document.write("You pressed OK")
}
else
{
document.write("You pressed Cancel")
}
</script>

</body>
Previous| Next