Skip to content

Tag: redirect

PHP go to another page and getElementById

I have 2 pages HTML page with a form PHP action page for the form Based on this, if everything is successful with the form submission, I want to go back to the first page and open up a modal using document.getElementById. I know to do this, I would need the header(“Location: blabla”) function in m…

Redirect routes in HTML using Javascript

I have 3 html files that I want to link together. The three files are button.html, option1.html, option2.html and all three files are stored in one src folder. The button.html is a simple webpage that contains two buttons: and the two other .HTML file are regular pages each w/ different content. I’m not…

Redirect ranges of IPs in JavaScript (no .htaccess)

I’m trying to redirect anyone viewing my blog from certain IP addresses (or ranges of IP addresses) to a different page. I found something that works for individual IP addresses, but I can’t figure out how to block ranges of IP addresses – like 123.123.123.* Here’s the script: I’…