JavaScript : redirection problem

Titreredirection problem
Postée le23-07-2007
Affichée322
Lienhttp://www.codeswall.info/source-15.html
Descriptionredirection problem
EtatContient des erreurs. Contient des erreurs.
Code d'insertion
OptionsRetirer les numéros de lignes.
TéléchargementTelecharger en format txtTelecharger en format pdf
  1. <style>
  2. ...
  3. </style>
  4. <script LANGUAGE="JavaScript"><!--
  5. function Agrandissement(){
  6. window.moveTo(0,0);
  7. if (document.all) {
  8. top.window.resizeTo(screen.availWidth,screen.availHeight);
  9. }
  10. else if (document.layers||document.getElementById) {
  11. if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
  12. top.window.outerHeight = screen.availHeight;
  13. top.window.outerWidth = screen.availWidth;
  14. }
  15. }
  16. }
  17. function redirection()
  18. {
  19. window.location.href="http://www.google.fr/";
  20. }
  21. //--></script>
  22. </head>
  23.  
  24.  
  25. <body onLoad="redirection()">