0

我需要在页面加载时从 index.html 页面重定向到子文件夹 aspx 页面。我使用以下代码并出现错误。

window.location.href = 'URL= HMIS/Login.aspx'</script>

错误

resource cannot be found. 
  Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. 

 Requested URL: /URL= /HMIS/Login.aspx
4

3 回答 3

0

试试这个:window.location.href = 'URL= ../HMIS/Login.aspx'

而不是:window.location.href = 'URL= HMIS/Login.aspx'

如果您使用的是 javascript,则在 asp 中使用 ..(双点),如 ~。

于 2014-01-03T06:09:07.333 回答
0

尝试这个:

top.location='HMIS/Login.aspx'
于 2013-09-03T06:36:06.633 回答
0

您是否尝试过:window.location.href = 'HMIS/Login.aspx'?

于 2013-09-03T06:36:15.333 回答