子網頁回傳

母頁 指定路徑和參數

mywin = window.open('', '',

'height=500,width=200,status=no,toolbar=no,menubar=no,location=no,top='

+ (screen.availHeight / 2 - 250) + ',left=' + (screen.availWidth / 2 + 370) );

mywin.location.href = "lunch_select.jsp?deptId=<%=deptID%>";

子頁 回傳路徑和參數,並重新載入

window.opener.document.fr.action = "lunch_input.jsp?employee=" + window.opener.document.fr.employee.value

+ "&meal_ground=" + window.opener.document.fr.meal_ground.value

+ "&eat=" + str;

self.opener.document.fr.submit();

window.close();