有以下修改注册表的javascript:
function pagesetup_null(){
//网页打印时清空页眉页脚
try{
var hkey_root,hkey_path,hkey_key;
hkey_root="HKEY_CURRENT_USER";
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
}catch(e){
}
} 把这段程序放在html文件中执行,可以成功修改注册表,
但把这段程序放在jsp 页面中,执行后注册表却没改变,这是为什么??
function pagesetup_null(){
//网页打印时清空页眉页脚
try{
var hkey_root,hkey_path,hkey_key;
hkey_root="HKEY_CURRENT_USER";
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
}catch(e){
}
} 把这段程序放在html文件中执行,可以成功修改注册表,
但把这段程序放在jsp 页面中,执行后注册表却没改变,这是为什么??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货