Friday 19 July 2019

How do I redirect with JavaScript?




How do you redirect to a page from another page with JavaScript?


Answer



To redirect to another page, you can use:



window.location = "http://www.yoururl.com";

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...