If you simply add a button to the Navs sample and add code:
Function Button1_onclick()
alert(Navs3.value)
End Function
The alert will show the correct value of 0 (zero) when Navs3 Item 1 is selected. But when you select Item 2 and then click the Button, the value of -1 is displayed when you should receive a 1 (one).
Tip: If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly. (We fixed it for you this time)