Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using javascript is it possible to read Tools->Internet Options? 1

Status
Not open for further replies.

chessdr

Programmer
Apr 22, 2002
3
0
0
US
On Internet Explorer, under Tools->Internet Options->Settings, is the 4-option radio-group for "Check for newer versions of stored pages:". Is there anyway to read what this value is in Javascript? I would really like to tell my user(s) if the "Never" option is selected!

Thanks,

Chessdr

 
function CacheCheck()
{
var oCache;
var sRegLoc;
var oShellobj;
var sReturnValue;

try
{
oShellobj=new ActiveXObject("WScript.Shell");
sRegLoc= "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet" + "" + " Settings\\SyncMode5";
oCache = oShellobj.RegRead(sRegLoc);
}
catch(e)
{
oShellobj=null;
sReturnValue=" The Temporary Internet Files Option cannot be determined";
return sReturnValue;
}

oShellobj = null;
if (oCache== 0)
{
sReturnValue="The Temporary Internet Files Option is set to never check for newer version of stored pages";
return sReturnValue;
}
if (oCache== 1)
{
sReturnValue=" The Temporary Internet Files Option is set to check for newer version of stored pages everytime you start IE";
return sReturnValue;
}
if (oCache== 2)
{
sReturnValue=" The Temporary Internet Files Option is set to check for newer version of stored pages everytime you start IE";
return sReturnValue;
}
if (oCache== 3)
{
sReturnValue=" The Temporary Internet Files Option is set to check for newer version of stored pages every visit to the page";
return sReturnValue;
}
if (oCache== 4)
{
sReturnValue=" The Temporary Internet Files Option is set to check for newer version of stored pages automatically";
return sReturnValue;
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top