in reply to Re: Re^7: Executing Javascript from HTML pages in perl
in thread Executing Javascript from HTML pages in perl

Anyone who uses javascript to redirect instead of the META refresh tag should be shot.

  • Comment on Re: Re: Re^7: Executing Javascript from HTML pages in perl

Replies are listed 'Best First'.
Re: Re: Re: Re^7: Executing Javascript from HTML pages in perl
by jryan (Vicar) on Nov 07, 2002 at 17:41 UTC

    While true, that doesn't stop people from doing it. Heres perhaps a better example:

    <html> <head> <script> if (document.all) //IE4,5 loc = 'index-ie4-5.html' else if (document.layers) //NS4 loc = 'index-ns4.html' else if (document.getElementById) //new browser loc = 'index.html' document.location.href = loc; </script> </head> <body> This site has moved. You will be redirected shortly. </body> </html>

    How would an LWP script handle this?

      It wouldn't but the person writing the script would...