Faire une redirection en javascript
Publié le 14 juillet 2015 | Par adminblog | Commenter
![Share on Facebook facebook](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/facebook.png)
![Share on Twitter twitter](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/twitter.png)
![Share on Google+ google_plus](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/google_plus.png)
![Share on Reddit reddit](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/reddit.png)
![Pin it with Pinterest pinterest](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/pinterest.png)
![Share on Linkedin linkedin](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/linkedin.png)
![Share by email mail](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/mail.png)
Voici une méthode simple pour faire une redirection en javascript.
A mettre entre les balises
1 |
<head></head> |
Voici 3 exemples :
1 2 3 4 5 6 7 8 9 10 11 12 |
<script language="javascript"> document.location.href="nouvellepage.html" </script> //on peut rediriger vers un autre site <script language="javascript"> document.location.href="http://mywebsite.tld/mydir/page.html" </script> <script language="javascript"> document.location.href="http://www.mondomaine.com" </script> |
This Post Has Been Viewed 41 Times
![Share on Facebook facebook](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/facebook.png)
![Share on Twitter twitter](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/twitter.png)
![Share on Google+ google_plus](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/google_plus.png)
![Share on Reddit reddit](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/reddit.png)
![Pin it with Pinterest pinterest](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/pinterest.png)
![Share on Linkedin linkedin](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/linkedin.png)
![Share by email mail](http://info57.fr/wp/wp-content/plugins/social-media-feather/synved-social/image/social/regular/96x96/mail.png)
Commentaires récents