Hi i'm using asp to write out some javascript variables like so:
<script>
var wsb0="peach"
var wsb1="plum"
var wsb2="pear"
var wsb3="apple"
var wsb4="orange"
var wsb5="banana"
var wsb6="pineapple"
</script>
I would like to use document.write the values of each variable name in an list, like so:
peach
plum
pear
apple
orange
banana
pineapple
Now in the situation above i have var wsb0 to wsb6, this is not walways the case as sometimes i have upto wsb20 and sometime only 4 of them.
Not sure how to go about this, Thanks
<script>
var wsb0="peach"
var wsb1="plum"
var wsb2="pear"
var wsb3="apple"
var wsb4="orange"
var wsb5="banana"
var wsb6="pineapple"
</script>
I would like to use document.write the values of each variable name in an list, like so:
peach
plum
pear
apple
orange
banana
pineapple
Now in the situation above i have var wsb0 to wsb6, this is not walways the case as sometimes i have upto wsb20 and sometime only 4 of them.
Not sure how to go about this, Thanks