2023년 8월 8일 화요일

javascript - location.reload() submit()



1. (b)팝업창에서 (a)부모창 Reload 하기

    parent.opener.location.reload();
    window.close();

    * 함수 호출도 가능
    * parent.opener.function-name();


2. (c)아이프레임(iframe)에서 (a)부모창 Submit 하기

    parent.document.form-name.submit();

    * 함수 호출도 가능
    * parent.function-name();


3. (a)부모창에서 (c)아이프레임(iframe)에서 특정 태그 값 가지고 오기

    var chkList = $("#iframe1").contents().find("input:checkbox[name='code1']:checked");
    var val1 = $("#iframe2").contents().find("#val1").val();





댓글 없음:

댓글 쓰기

MSSQL - Cursor vs Temp Table

#테이블 변수사용의 예 use pubs go declare @tmptable table (     nid int identity(1,1) not null,     title varchar (80) not null ) -- 테이블 변수 선언 inse...