What's wrong with Netscape
Posted: Sat Jul 19, 2003 11:39 am
Hi there!!
I am using Netscape 4.8 for browsing the following code but it's not working but at the same time it's working in IE, Galeon and Mozilla. Could you plese let me know what I have to do in order to work it properly with Netscape.
Thank you.
<
I am using Netscape 4.8 for browsing the following code but it's not working but at the same time it's working in IE, Galeon and Mozilla. Could you plese let me know what I have to do in order to work it properly with Netscape.
Thank you.
<
Code: Select all
html>
<head>
<title>Option Selection and Submission...</title>
<script type="text/javascript">
<!--
function updateTextBox(selectObj, textBoxObj)
{
var index = selectObj.selectedIndex;
var selection = selectObj.optionsїindex].text;
textBoxObj.value += selection + "\n";
}
// -->
</script>
</head>
<body>
<h1>Multiple User Selection Submission</h1>
<hr/>
<p>Make your selections below:</p>
<form name="selection_form">
<?php
$Domain_Nameї] = "Cricket";
$Domain_Nameї] = "Soccer";
$Domain_Nameї] = "Table Tennis";
$Domain_Nameї] = "Chess";
?>
<br>
<select size="5" name="user_choice" onclick="updateTextBox(this, currentSelections)">
<?php
foreach ($Domain_Name as $Existing_Item) print " <option value="$Existing_Item ">$Existing_Item</option>";
?>
</select>
<hr/>
<textarea name = 'currentSelections' readonly="readonly" rows = "20" cols = "45"></textarea>
<input type="submit" value="Submit" name="Submit"/>
</form>
</body>
</html>