windows-nt/Source/XPSP1/NT/base/ntsetup/win95upg/dvdcheck/dvdupgrd/dvdupgrd.js

24 lines
651 B
JavaScript
Raw Normal View History

2020-09-26 03:20:57 -05:00
function UpgradeNow() {
// reformat ?website=mywebsite&bla=... to 'http://mywebsite?bla=...'
var querypart = window.location.search;
var websiteKeyword = "website=";
var websiteIndex = querypart.indexOf(websiteKeyword)+websiteKeyword.length;
var website = querypart.substring( websiteIndex );
var newURL = "http://"+website;
alert("debug info->Calling website "+newURL);
window.navigate( newURL );
}
function UpgradeLater() {
var oWShell = new ActiveXObject( "WScript.Shell" )
oWShell.Run( "dvdupgrd /remove" );
pchealth.Close();
}
function OnLoad() {
trg.style.setExpression( "left", document.body.clientWidth - trg.offsetWidth );
}