Question and answer is powered by AnsPress.io
I want to set a page location using JavaScript when I click a button. I am using blade template for my page view. How to set other location using javascript in laravel 5 version.
if you using Laravel blade template and set a page location in Javascript. So you can follow this code:
<script type="text/javascript"> window.location.href="{{url('home')}}"; </script>