Skip to content

Instantly share code, notes, and snippets.

@jtarleton
Created February 14, 2013 20:47
Show Gist options
  • Save jtarleton/4956269 to your computer and use it in GitHub Desktop.
Save jtarleton/4956269 to your computer and use it in GitHub Desktop.
URL redirect after prompt for a GET parameter
<script type="text/javascript">
function getPage(id)
{
id = prompt('Enter ID: ');
window.location.href='http://domain.com/module/action?id=' + id;
return false;
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment