confirm.js
来自「“JSP数据库项目案例导航”一书从第一章到第十一章各章实例的源程序文件以及数据库」· JavaScript 代码 · 共 46 行
JS
46 行
function confirmlink(str)//参数为“str”的确认提示
{
return confirm("确定要进行"+str+"操作?")
}
function confirmlink1(str)//参数为str的确认提示
{
return confirm(str)
}
function createwindow(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"window","height=300,width=320,toolbar=no,menubar=no,location=no,resizable=yes,directories=no,status=no,scrollbars=no,dependent=no");
h.focus();
}
function createwindoww(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=260,width=320,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function createwindowww(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=370,width=320,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function createwindowm(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=200,width=600,toolbar=no,menubar=no,location=no,resizable=no,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function createwindowg(strURL)//开小窗口函数,strurl为新开窗口地址
{
var h=window.open(strURL,"","height=400,width=550,toolbar=no,menubar=no,location=no,resizable=yes,directories=no,status=no,scrollbars=yes,dependent=no");
h.focus();
}
function NumberKeyedIn()//text文本中单取数字函数。
{
if (window.event.keyCode>57 || (window.event.keyCode<48 && window.event.keyCode!=45 && window.event.keyCode!=13))
window.event.keyCode=0;
return 1;
}
function NumberKeyedInn()//text文本中单取数字函数。
{
if (window.event.keyCode>57 || (window.event.keyCode<48 && window.event.keyCode!=45 && window.event.keyCode!=46 && window.event.keyCode!=13))
window.event.keyCode=0;
return 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?