As I create a select menu, which is in the first position with the current URL, changing the selected
of option
:
<select >
<option value="http://www.test.com/teste1" selected>test1</option>
<option value="http://www.test.com/teste2">Google</option>
<option value="http://www.test.com/teste3">YouTube</option>
<option value="http://www.test.com/teste4">test 4</option>
</select>
Example browser URL http://www.test.test.4
:
<select >
<option value="http://www.test.com/teste4" selected>test 4</option>
<option value="http://www.test.com/teste1/">test1</option>
<option value="http://www.test.com/teste2">Google</option>
<option value="http://www.test.com/teste3">YouTube</option>
</select>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…