返回列表 发帖

[提交Bug] [BUG反馈] JS解析问题,不知道算不算Bug。

提交Bug

是否试过重新安装到新目录 -
TheWorld版本 2、3
操作系统 XP
IE版本 8、7、6
系统辅助安全软件 -
使用的文字输入法 -
问题现象描述 -
问题重现方法 -
本帖最后由 Do1Win2 于 2009-6-30 11:11 编辑

下面这段代码,在IE、FF上运行的话,点击图片会弹出“test”的对话框,然后跳转到“http://www.ioage.com”,但是用TW打开的话,只会弹出对话框,不会再执行页面跳转了,就算是把跳转的代码写到弹出对话框的后面也一样。
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT_xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title> new document </title>
  5. <meta name="generator" content="editplus" />
  6. <meta name="author" content="" />
  7. <meta name="keywords" content="" />
  8. <meta name="description" content="" />
  9. </head>

  10. <body>
  11. <script>
  12. function test()
  13. {
  14. location.href='http://www.ioage.com';
  15. alert('test');
  16. }
  17. </script>

  18. <a href="javascript:void(0);" onclick="test();"><img src="http://bbs.ioage.com/cn/images/theworld/logo.png"></a>
  19. </body>
  20. </html>
复制代码

返回列表