<!--[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">..< SPAN>title><
<script type="text/javascript">
function clickT(){
window.location.href='www.wuxuxiao.com';
}
< SPAN>script>
< SPAN>head>
<body>
<input value="click" type="button" onclick="clickT();" />
< SPAN>body>
< SPAN>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下