Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Javascript
2021-09-28 18:41:04
express redirect to url
window.location.href = "http://mywebsite.com/home.html";
Add solution
Javascript
2021-09-28 06:53:02
redirect to another page javascript
// similar behavior as an HTTP redirect window.location.replace("http://stackoverflow.com"); // similar behavior as clicking on a link window.location.href = "http://stackoverflow.com";
Add solution
Html
2021-09-28 00:46:06
javascript redirect
// similar behavior as an HTTP redirect window.location.replace("http://stackoverflow.com"); // similar behavior as clicking on a link window.location.href = "http://stackoverflow.com";
Add solution
PHP
2021-09-27 23:32:02
php do not refresh page after submit post
//Using Javascript <script> if ( window.history.replaceState ) { window.history.replaceState( null, null, window.location.href ); } </script>
Add solution
Javascript
2021-09-27 14:36:02
javascript redirect to a page
// similar behavior as an HTTP redirect window.location.replace("http://stackoverflow.com"); // similar behavior as clicking on a link window.location.href = "http://stackoverflow.com";
Add solution
Javascript
2021-09-26 16:35:03
change window location javascript
window.location.href = "www.google.com";
Add solution
Other
2021-09-26 11:04:05
listen back button event listner
function goBack() { window.location.hash = window.location.lasthash[window.location.lasthash.length-1]; window.location.lasthash.pop(); }
Add solution
Javascript
2021-09-25 14:35:05
js redirect to another page
// similar behavior as an HTTP redirect window.location.replace("http://stackoverflow.com"); // similar behavior as clicking on a link window.location.href = "http://stackoverflow.com";
Add solution
Javascript
2021-09-25 11:22:03
redirect script javascript
// similar behavior as an HTTP redirect window.location.replace("http://stackoverflow.com"); // similar behavior as clicking on a link window.location.href = "http://stackoverflow.com";
Add solution
Html
2021-09-25 07:18:04
button as href
<button onclick="window.location.href='/page2'">Continue</button>
Add solution
‹
1
2
...
19
20
21
22
23
24
25
26
27
28
›
Best helpers
daily
weekly
monthly
for 3 months
Ranking is empty
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.