html address

hopefully this is easy one.

i have a web page that has a combo box as follows:

            </select><select name="ctl00$PSDDL" onchange="javascript:setTimeout('__doPostBack(\'ctl00$PSDDL\',\'\')', 0)" id="ctl00_PSDDL">
                  <option selected="selected" value="american">American</option>
                  <option value="decimal">Decimal</option>
                  <option value="hongkong">Hong Kong</option>
 
            </select>


if the url is http://xyz.com how do i add to the url to force it to display decimal rather than hongkong or american??

something like http://xyz.com?ctl00_PSDDL=decimal
arwar49Asked:
Who is Participating?
 
arwar49Connect With a Mentor Author Commented:
i get the following message:

Internet Explorer has modified the page to help prevent cross-site scripting.

however when i add:

&ctl00$PSDDL=%22american%22

it seems to work as desired
0
 
cfEngineersCommented:
location.href='http://xyz.com?ctl00_PSDDL='+document.GetElementById('ctl00_PSDDL').options[document.GetElementById('ctl00_PSDDL').selectedIndex].value;
0
 
arwar49Author Commented:
i solved it myself
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.