I have a url and every time the user types this url in the browser , I want it to be automatically directed to url and , how to do this with javascript or jQuery?
I have a url and every time the user types this url in the browser , I want it to be automatically directed to url and , how to do this with javascript or jQuery?
jQuery
$(document).ready(function(){ window.location.href ="url y"; });
JavaScript
<body onload="window.location.href = 'url y';">