![]() |
Javascript : Auto redirection select dropdown .... weird
I am trying to place this auto redirect select dropdown box on the postbits of all member.
The code: Code:
<Script language="JavaScript"> Once there, all a user has to do is select the appropriate item in the dropdown, say "Control Panel" and it will automatically redirect to the usercp.php page. However it doesn't seem to redirect. Anyone, any ideas why this doesn't work ? :( Edit : hmm odd, it works on IE it seems but not on Firefox. Is there any way around it so that it works on all browsers ? Ok nvm...ended up using this code and it seems to work : Code:
<SELECT name="select" ONCHANGE="window.location=(this.options[selectedIndex].value);" SIZE="1"> |
Alternately you could have a look at the code used for the dropdown menus in the admincp (for usergroups for example).
|
The script I use....
Code:
<script language="JavaScript"> and the form... Code:
<form name="dropDownForm"> |
All times are GMT. The time now is 08:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|