title: Dropdown option menu with javascript
body: <p>I have created a website with javascript dropdown option menu.</p>
  
  <p>This is my menu.php file</p>
  
  <pre><code>&lt;select onchange="if (this.value) window.location.href=this.value"&gt;
  &lt;option value="/home.php"&gt;Home&lt;/option&gt;
  &lt;option value="/aboutme.php"&gt;About Me&lt;/option&gt;
  &lt;option value="/work.php"&gt;Work&lt;/option&gt;
  &lt;option value="/contect.php"&gt;Contect Me&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I have included this file on every pages of website.
  It works fine.</p>
  
  <p>Now what I want is : When I click on the <strong>aboutMe</strong> from dropdown menu in "home" It should redirect me to <strong>About Me page</strong> and dropdown menu in <strong>aboutme</strong> page should remain at <strong>about me</strong>. So far it is redirecting successfully, but dropdown menu always remains on "Home".</p>
  
  <p>Is there a way to solve this ? or Should I create a saparate file for each pages?</p>
  
  <p>I am confused. Please Help.</p>