9月 212009
 

写了一个脚本,内容为:
<script>
location.replace("");
</script>

该脚本在Firefox下死循环了,在IE下定向到网站的根目录了。
说明Firefox认为空就是自己,IE认为空就是根。

用302跳转试试,写脚本如下:
<?php
head("Location: ");
?>

Firefox下和没有该Location头一样,没有循环也没有跳转;
IE下还是跳转到网站的根目录了。

 Posted by at 上午 2:21

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据