Forum Discussion
yury_mokropulo
13 years agoNew Contributor
This one works:
function CheckBrowser()
{
var PropArray, ValuesArray;
// closing IE
PropNames = new Array("processname", "index");
PropValues = new Array("iexplore", 1);
var page = Sys.FindChild(PropNames, PropValues, 1);
if(page.Exists) page.Close();
// closing Chrome
PropNames = new Array("processname", "index");
PropValues = new Array("chrome", 1);
var page = Sys.FindChild(PropNames, PropValues, 1);
if(page.Exists) page.Close();
// add browser...
}
function CheckBrowser()
{
var PropArray, ValuesArray;
// closing IE
PropNames = new Array("processname", "index");
PropValues = new Array("iexplore", 1);
var page = Sys.FindChild(PropNames, PropValues, 1);
if(page.Exists) page.Close();
// closing Chrome
PropNames = new Array("processname", "index");
PropValues = new Array("chrome", 1);
var page = Sys.FindChild(PropNames, PropValues, 1);
if(page.Exists) page.Close();
// add browser...
}