首页 > 解决方案 > 我想将图像传递到弹出页面

问题描述

function openChild()
    {
        window.name = "parentForm";
        window.open("popup.html",
                "crop", "width=570, height=350, resizable = no, scrollbars = no"); 
    }
    
<input type="file" id="imgs" name="imgs" accept="image/jpeg, image/jpg, image/png">
<br><br>
<input type="button" value="Image Crop" onclick="openChild()"><br>

我想将“imgs”传递给popup.html,并且我想在popup.html 上使用图像的src。我怎样才能通过它?请帮我。

标签: javascripthtmlimagepopup

解决方案


推荐阅读