I'm new to Javascript and I can't find a simple example of this online.
I have a simple HTML page with a select widget on it:
<select name="myProduct">
<option value="aaa">This is AAA</option>
<option value="bbb">This is BBB</option>
<option value="ccc">This is CCC</option>
</select>
What's an easy way to pass a param to the URL like so ...
/mypage.html?selectedProduct=CCC
... and have the value selected in the widget on page load?