<div class="codetitle"> <span><a style="CURSOR: pointer" data="46403" class="copybut" id="copybut46403" onclick="doCopy('code46403')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code46403"> <br>//새 페이지를 열고 게시 방법을 사용하여 전달합니다. 매개변수<br>function openNewPageWithPostData(postAddress,opentype,paramNames,paramValues) <br>{ <br>var newWindow = window.open(postAddress,opentype) <br>if (!newWindow) <br>{ <br>return false; <br> } <br><br>var postDataHtml="<html><head></head><body>" <br>postDataHtml "<form id='postDataForm' method='post' action='" postAddress "'>"; <br><br>if (paramNames && paramValues && (paramNames.length == paramValues.length)) <br>{ <br>for( var i=0 ; paramNames.length ; i ) <br>{ <br>postDataHtml "<input type='hidden' name='" paramNames[i] "' value='" paramValues[i] "'/>"; <br>} <br>} <br><br>postDataHtml = postDataHtml "</form><script type="text/javascript"> document.getElementById("postDataForm") .submit()<script><body><html>"; <br>newWindow.document.write(html); <br>return newWindow; <br>} <br> </div>