【发布时间】:2011-09-29 17:38:08
【问题描述】:
我们正在使用 VBScript 代码打开应用程序窗口,以避免用户在打开 IE8 窗口时进行前进/后退导航。
这是使用的代码。
Set WshShell = CreateObject("shell.application")
Set IE=CreateObject("InternetExplorer.Application")
IE.menubar = 1
IE.toolbar = 0
IE.statusbar = 0
'here we open the application url
IE.navigate "http://www.google.com"
IE.visible = 1
WshShell.AppActivate(IE)
这工作正常,但问题是如果用户打开多个窗口,会话 cookie 会跨窗口共享。
为此还有一个解决方案,我们可以在打开 IE 时使用 nomerge 选项
WshShell.ShellExecute "iexplore.exe", " -nomerge http://www.google.com", null, null, 1
现在我们希望这两个选项都可用。即用户不应该能够向前/向后导航,并且如果打开了两个窗口,则不应共享数据。
我们无法让这两件事一起工作。
我们也不想要任何全屏模式(即按 F11 后)
谁能提供解决方案?
提前致谢。
【问题讨论】:
标签: asp.net internet-explorer-8 vbscript