window.location在IE 6中不工作

下面的JS脚本在FF和IE7中运行良好.不过,它在IE6中失败了,而IE6恰好是我的目标受众.
失败的是...Window.Location没有呼叫.

选择 | 换行 | 行号
  1. function confirmation(text,url_link) {
  2.     var answer = confirm(text)
  3.     if (answer){
  4.         window.location = url_link;
  5.     }
  6.  
  7. }
  8.  
# 回答1


尝试使用window.Location.href.
致以亲切的问候,
DMJPRO.

标签: Javascript

添加新评论