B
bkaneweb
Hi,
I have a drop down box that jumps to a certain page number in a
catalog when you select it. The actual HTML page does not change, I
just change the ?page= at the end of the address to select the page. I
need to have the page in the drop-down box automatically selected to
the page that was just chosen after the page refreshes. I've tried :
<form>
<script>
if (x=y)
{
var selec= 'selected="selected"'
}
var y=window.location.search.substring(1)
for (var x=1; x<= 157; x++)
{
document.write('option ' + selec +'value="' + x + '">' + x + ' / ' + (x
+1) + 'option')
document.write('<option ' + selec +'value="' + x + '">' + x + ' / ' +
(x+1) + '</option>')
}</script>
</form>
but it does not work. Any suggestions? I need this answered ASAP.
Thanks for your help!
I have a drop down box that jumps to a certain page number in a
catalog when you select it. The actual HTML page does not change, I
just change the ?page= at the end of the address to select the page. I
need to have the page in the drop-down box automatically selected to
the page that was just chosen after the page refreshes. I've tried :
<form>
<script>
if (x=y)
{
var selec= 'selected="selected"'
}
var y=window.location.search.substring(1)
for (var x=1; x<= 157; x++)
{
document.write('option ' + selec +'value="' + x + '">' + x + ' / ' + (x
+1) + 'option')
document.write('<option ' + selec +'value="' + x + '">' + x + ' / ' +
(x+1) + '</option>')
}</script>
</form>
but it does not work. Any suggestions? I need this answered ASAP.
Thanks for your help!