CodeIgniter / JavaScript / JQuery / PHPRedirect to another page using javascript December 3, 2016 Chandan SharmaComment on Redirect to another page using javascriptUse this to redirect to another page. <script> window.location = "http://example.com/foo.php?option=500"; </script>Share this:FacebookX