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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1903


Explain about tristate constants?

998


What is the difference between function and procedure?

1199


What are the advantages of vbscript?

1073


Illustrate briefly about the different types of statement

2490


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

3008


How regexp.execute method works?

1053


Mention what is the main difference between function and sub-procedure?

1036


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3729


Explain the constants in vbscript?

970


How to write VB script for login module?

3164


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1821


What is the use of the date function in the vbscript language?

1015


Which function is used in the vbscript language to convert the specified expression into a date type value?

920


Explain the string concatenation function in vbscript?

1015