吴旭晓个人博客 繁体中文 简体中文

首页| 日志 |JAVA |ASP |PHP |Android |IOS |ASP.NET |JavaScript |DIV+CSS |SEO |taobaoke |饼哥语录
繁体中文 简体中文

遇到Javascript在IE6下window.location.href 不跳转的问题及解决方法

<!--[endif]-->

没有废话,直接开始代码

页面代码如下:

代码
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title id="Title1" runat="server">..title><
<script type="text/javascript">
    
function clickT(){
   window.location.href='www.wuxuxiao.com';
    }
script>
head>
<body>
    
<input value="click" type="button" onclick="clickT();" />
body>
html>

当我点击按钮时,将会得到这样的结果:

The page cannot be displayed

The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

调试了好久,也不知道是什么原因,后来考虑到IE6

作者:吴旭晓 | 来源:个人博客 | 点击量:3412 | 发布时间:2010-08-25
最新留言 | 返回上一页 | 返回首页

相关文章:

版权所有:吴旭晓个人博客 Copyright © 2013-2023 个人博客