Skip to content

JS document.domain 역할 #86

@kyupid

Description

@kyupid

https://insusu.tistory.com/entry/documentdomain%EC%9D%B4-%ED%95%98%EB%8A%94-%EC%97%AD%ED%95%A0%EC%9D%B4-%EB%AD%94%EA%B0%80%EC%9A%94

예를들어 본창에서 새창을 띄우고
새창에서 본창으로 데이터를 넘길 필요가 있을 때 사용

<script>
  document.domain = '나의서버.com';
  $(function() {
  
    $('".$target_frm."', opener.document).find(\"input[name='user_cert_flag']\").val('1');
  }
</script>

Metadata

Metadata

Assignees

Labels

학습Extra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions