B
Benoit Fries
Hello,
I have some problems with a Javascript that should redirect me to
another page, it works fine most of the times but sometimes it hangs
on a blank page.
I made lots of tests and finally I could reproduce the bug with this
little piece of code:
<script>
document.writeln("<scr"+"ipt>location='http://www.microsoft.com/';</scr"+"ipt>");
</script>
(I know it is unusual (and unnecessary) to write a script that writes
another script, but it's returned that way by a server I don't
control).
This script works. But if you use the back button more than 12 times,
then it won't work anymore. You 'll get a blank page.
Is this a feature or a bug? Do you know how to avoid that?
Thanks in advance,
Benoit Fries
I have some problems with a Javascript that should redirect me to
another page, it works fine most of the times but sometimes it hangs
on a blank page.
I made lots of tests and finally I could reproduce the bug with this
little piece of code:
<script>
document.writeln("<scr"+"ipt>location='http://www.microsoft.com/';</scr"+"ipt>");
</script>
(I know it is unusual (and unnecessary) to write a script that writes
another script, but it's returned that way by a server I don't
control).
This script works. But if you use the back button more than 12 times,
then it won't work anymore. You 'll get a blank page.
Is this a feature or a bug? Do you know how to avoid that?
Thanks in advance,
Benoit Fries