试了一下,可以用这个方法取得URL:- Set ws=createobject("wscript.shell")
- Dim IE,obj,i
-
- Set Shell=CreateObject("Shell.Application")
- For Each win In Shell.Windows
- If LCase(Right(win.fullName,12))="iexplore.exe" Then
- msgbox win.LocationURL
- if win.LocationURL="about:blank" then
-
- end if
- End If
- Next
- Set Shell=Nothing
复制代码
|