Add drop-down selector in header?
Posted: Fri Sep 19, 2014 1:12 am
I'd like to add a drop-down selector in the header.xhtml file that looks like this:
This way users can jump quickly to other help files. However, since the webhelp is frame-based, the new URL loads inside a frame and doesn't actually change the page. How can I make it so that when users select another option, a different URL loads?
Code: Select all
<form>
<select name="URL" onchange="window.location.href=this.form.URL.options[this.form.URL.selectedIndex].value">
<option value="">Choose a site</option>
<option value="http://example.com/java/index.html" target="_top">Java</option>
<option value="http://example.com/net/index.html" target="_parent">.NET</option>
<option value="http://example.com/cpp/index.html" target="_top">C++</option>
<option value="http://example.com/php/index.html" target="_parent">PHP</option>
</select>
</form>