Solved vbscript to close particular tabs in browser

June 3, 2014 at 01:30:34
Specs: Linux x86_64
I need Vbscript to close a particular tab or multiple tabs in browser like Firefox.
.Thank uuuuuuuuuuuuuuuuuuuuu

See More: vbscript to close particular tabs in browser

Report •


✔ Best Answer
June 4, 2014 at 13:24:54
No, it's possible with IE. Consider the following VBScript:
For Each w In CreateObject("Shell.Application").Windows 
  If InStr(1, w.LocationURL, "google", 1) Then _
    w.Quit()
Next 'w

How To Ask Questions The Smart Way



#1
June 3, 2014 at 06:20:25
For a script to control a browser, that browser must expose a scriptable interface. As far as I'm aware, Firefox does not do that.

How To Ask Questions The Smart Way


Report •

#2
June 3, 2014 at 23:57:11
ok.. how can do that for any browser that support scriptable interface??

Report •

#3
June 4, 2014 at 13:04:18
Any method of closing browser tabs via a script, if it was possible at all, would be browser specific. I don't know of any browser that supports this.

Report •

Related Solutions

#4
June 4, 2014 at 13:24:54
✔ Best Answer
No, it's possible with IE. Consider the following VBScript:
For Each w In CreateObject("Shell.Application").Windows 
  If InStr(1, w.LocationURL, "google", 1) Then _
    w.Quit()
Next 'w

How To Ask Questions The Smart Way


Report •


Ask Question