IE 6/7 Access Denied trying to access a popup window.document

前端 未结 4 464
星月不相逢
星月不相逢 2021-01-14 17:49

I\'m creating a popup window with no URL source using window.open(). I don\'t give it a URL because soon I\'ll want to post a form to it. However, in the meantime I\'d lik

4条回答
  •  余生分开走
    2021-01-14 18:33

    Test
    
    

    Works in IE 6, 7 & 8, Opera 9.6, Firefox 2 & 3. Does not work in Safari for Windows 3 & 4 or Google Chrome.

    When it does work, it results in a pretty ugly URL in the Location box.

    If the browser support listed above is acceptable, you can use the solution provided, otherwise I'd do what David said and window.open('Loading.htm' ...) where Loading.htm contains whatever content you want to display (you should probably keep it lightweight otherwise it might take longer to load and render than the form will to POST).

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题