When you need to jump to a specific URL direct after you choosed a Statement from a Selectbox:

 

<select onchange=”window.open(this.options[this.selectedIndex].value,’_self’)”>

    <option value=”">Choose a Language…</option>

    <option value=”database.php?lang=en”>English</option>

    <option value=”database.php?lang=de”>Deutsch</option>

    <option value=”database.php?lang=id”>Italian</option>

    <option value=”database.php?lang=ru”>Russian</option>

</select>

Category: html, javascript
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>