title: how to insert a url/variable into onclick?
body: <p>this can't be too complex but it is baffling me - I would like to pass a variable through a url (www.site.com/index.html?var=whatever.htm) and use the variable within an onclick function so that the onclick button uses the variable as the url to go to..onclick. </p>
  
  <p>I am trying to do this in place of a history button, since the button is within a frame, and clicks to other frames change what the history actually is. </p>
  
  <p>I tried <code>&lt;input value="Go Back" onclick="parent.location(var)" type="button"&gt;</code>, but clearly i am missing something on how to get javascript to recognize that variable. </p>
  
  <p>Thanks for any help.</p>