Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a Fucntion to close all Opened browser expect desired
one?

Answers were Sorted based on User's Feedback



Write a Fucntion to close all Opened browser expect desired one?..

Answer / sojan davis

Function WebLogOff()

Dim oDesc, x
'Create a description object
Set oDesc = Description.Create
oDesc( "micclass" ).Value = "Browser"
'Close all browsers except ""
If Desktop.ChildObjects(oDesc).Count > 0 Then
For x = Desktop.ChildObjects(oDesc).Count - 1 To 0
Step -1
If InStr(1, Browser("creationtime:="&
x).GetROProperty("name"), "NAME OF PAGE") = 0 Then
Browser( "creationtime:=" & x ).Close

End If
Next
End If

End Function

Is This Answer Correct ?    3 Yes 0 No

Write a Fucntion to close all Opened browser expect desired one?..

Answer / sha

Thanks sojan

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

why variable name should not exceed 255 characters?

0 Answers  


What are events in the vbscript language?

0 Answers  


How regexp.execute method works?

0 Answers  


how to increase the values in text box in a given text box increament by two values by clicking on button

0 Answers  


How to select a value from a list box by using Selenium web-driver?

2 Answers   HCL,


Find Out Length of an array without using Ubound?

1 Answers  


How you can call vbscript functions?

0 Answers  


join all the array values without using join function?

1 Answers   CSS Corp,


Explain about .wsf files?

0 Answers  


What are the differences between Visual Basic, VBA and VBScript? When would it be appropriate to use one as opposed to another?

1 Answers   Infosys,


Which data type/types are supported by vbscript language and what are their specialties?

0 Answers  


What are the environments supported by vbscript language?

0 Answers  


Categories