- UID
- 49538
- 帖子
- 160
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2007-3-16
|
本帖最后由 Do1Win2 于 2009-6-30 11:11 编辑
下面这段代码,在IE、FF上运行的话,点击图片会弹出“test”的对话框,然后跳转到“http://www.ioage.com”,但是用TW打开的话,只会弹出对话框,不会再执行页面跳转了,就算是把跳转的代码写到弹出对话框的后面也一样。- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT_xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title> new document </title>
- <meta name="generator" content="editplus" />
- <meta name="author" content="" />
- <meta name="keywords" content="" />
- <meta name="description" content="" />
- </head>
- <body>
- <script>
- function test()
- {
- location.href='http://www.ioage.com';
- alert('test');
- }
- </script>
- <a href="javascript:void(0);" onclick="test();"><img src="http://bbs.ioage.com/cn/images/theworld/logo.png"></a>
- </body>
- </html>
复制代码 |
|