
JavaScript
<head>
<script type ="text/JavaScript">
function find()
{
alert( "price of the selected book is Rs.100"
}
function loadbooks()
{
if ( document.test.subject.value "s2")
{
document.test.bo <html>
<head>
<script type ="text/JavaScript">
function find()
{
alert( "price of the selected book is Rs.100"
}
function loadbooks()
{
if ( document.test.subject.value "s2")
{
document.test.books.options[0] = new option (" organizational behave", 0)
document.test.books.options[1] = new option ("reasearch", 1)
document.test.books.options[2] = new option ("admin", 2)
}
}
</script>
</head>
<body>
<br/>
<form name = "test">
<table border = 01 width = 100%>
<tr><th align = center colspan = 2>
Online Books price detail by : mc08202880</th></tr>
<tr><td>selected category</td>
<td><select name = "subject" onblur = loadBooks()>
<option value = "s1">computerscience</option>
<option value = "s2">mathematics</option>
<option value = "s3">management sciences</option>
</select></td></tr>
<tr><td>select Book<td>
<select name = "books">
<option>Please select one of the options above first</option>
</select></tr></td>
<tr align = center><th colspan =2>
<input type = "button" value = "price of book"
onMouseOver= if value find()></th></tr>
</table>
</form>
</body>
</html> <html>
<head>
<script type ="text/JavaScript">
function find()
{
alert( "price of the selected book is Rs.100"
}
function loadbooks()
{
if ( document.test.subject.value "s2")
{
document.test.books.options[0] = new option (" organizational behave", 0)
document.test.books.options[1] = new option ("reasearch", 1)
document.test.books.options[2] = new option ("admin", 2)
}
}
</script>
</head>
<body>
<br/>
<form name = "test">
<table border = 01 width = 100%>
<tr><th align = center colspan = 2>
Online Books price detail by : mc08202880</th></tr>
<tr><td>selected category</td>
<td><select name = "subject" onblur = loadBooks()>
<option value = "s1">computerscience</option>
<option value = "s2">mathematics</option>
<option value = "s3">management sciences</option>
</select></td></tr>
<tr><td>select Book<td>
<select name = "books">
<option>Please select one of the options above first</option>
</select></tr></td>
<tr align = center><th colspan =2>
<input type = "button" value = "price of book"
onMouseOver= if value find()></th></tr>
</table>
</form>
</body>
</html>
Copyright © 2026 eLLeNow.com All Rights Reserved.