I have inserted a function to help me pass a value from one html page to a drop down box in another html page. The problem is the code is working only in IE and not in Firefox.
The code in the first page :-
The code in the 2nd page :-
The code in the first page :-
Code:
<a href="reservation.html?rooms=0">Book Now</a>
Code:
<script type="text/javascript">
function parseState()
{
var q = unescape(location.search);
q = q.substring(7, q.length);
if (q != "")
{
document.getElementById('rooms').options.selectedIndex = q;
}
}
</script>
Comment