팝업 비밀번호 입력 기능 추가
This commit is contained in:
parent
3df8627f4e
commit
5d6ebdf1cc
@ -5,3 +5,21 @@
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// 팝업으로 비밀번호를 입력받아서 콜백함수에 전달한다.
|
||||
function fn_prompt_password(msg, callbackFucName) {
|
||||
var thePrompt = window.open("", "_NLIB_POMPT_PASSWORD", "widht=100, height=100");
|
||||
var theHTML = "";
|
||||
|
||||
theHTML += "<p>" + msg + "</p>";
|
||||
theHTML += "<br/>";
|
||||
theHTML += "비밀번호: <input type='text' id='thePass' placeholder='Enter Password...'/>";
|
||||
theHTML += "<br />";
|
||||
theHTML += "<input type='button' value='확인' id='thePromptOk' onclick='opener.parent." + callbackFucName + "("
|
||||
+ "document.getElementById(\"thePass\").value); window.close();'/>";
|
||||
theHTML += "<input type='button' value='취소' id='thePromptClose' onclick='window.close();'/>";
|
||||
|
||||
thePrompt.document.body.innerHTML = theHTML;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user