Pass Value From Parent Form to Child Form using javascript showModalDialog

前端 未结 3 902
花落未央
花落未央 2021-02-10 15:41

if i want to pass in my value for confirmation box!!! so lets say i want to delete item no 1 so i checked the check box then when i pressed the delete button. the popup box come

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-10 16:15

    If you are using a popup window you can reference the parent like this:

    window.opener.document.getElementById("whatever").value = whatever;
    

提交回复
热议问题