Home  >  Article  >  Web Front-end  >  JSF中confirm弹出框的用法示例介绍_javascript技巧

JSF中confirm弹出框的用法示例介绍_javascript技巧

WBOY
WBOYOriginal
2016-05-16 17:04:561570browse
复制代码 代码如下:

function checkInput(objectSource) {
if(objectSource.onclick){
objectSource.oldOnClick = objectSource.onclick;
objectSource.onclick = null;
}

var attachfile = $('#attachment').val();
if(content.indexOf("附件") != -1 && attachfile == undefined) {
if(!confirm( '您的邮件内容提到附件,但您可能忘记了添加附件。')){
return false;
}
}
objectSource.oldOnClick();
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn