Skip to content

Instantly share code, notes, and snippets.

@lukejones
Created February 22, 2012 13:01
Show Gist options
  • Save lukejones/1885056 to your computer and use it in GitHub Desktop.
Save lukejones/1885056 to your computer and use it in GitHub Desktop.
Redirecting page based on URL
window.onload = function() {
window.location.replace("<?php echo($productUrl); ?>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment