Get image and text in the parent window from pop up window

Clash Royale CLAN TAG#URR8PPP
Get image and text in the parent window from pop up window
I'm opening a popup window from the page. In the modal window, I am uploading an image from the computer and enter some text. After uploading the image and text, I have to show the uploaded image and the text in the parent window.
JQuery:
<script type="text/javascript">
function readURL(input)
if (input.files && input.files[0])
var reader = new FileReader();
reader.onload = function (e)
$('#uploadimg')
.attr('src', e.target.result)
.width(150)
.height(200);
;
reader.readAsDataURL(input.files[0]);
$("myFile").change(function()
readURL(this);
)
</script>
<script>
$(function()
$('#btnLaunch').click(function()
$('#myModal').modal('show');
);
$('#btnSave').click(function()
var value = $('inputvalue').val();
$('.tweetinput').html(value);
$('#myModal').modal('hide');
);
);
</script>
Html:
<textarea id="txtInput" class="inputvalue" name="tweets" placeholder="What's Happening..." style="height:100px; width:450px;font-size: 20px;border:2px solid #9c939352;"></textarea>
<input type="file" onchange="readURL(this);" class="inputvalue" id="myFile" style=" margin-top: 5px;
margin-left: 5px; font-size: 20px;">
<img src="#" id="uploadimg" alt="No image">
I tried to upload the image and text in popup to parent.The text is displayed but the image is not shown only the path of the image is displayed in parent window
– vino
Aug 13 at 5:55
@vino, the question Suresh Kamrushi is asking means where is the code that you have tried so far, if there is a code that you have written then please upload it here, otherwise please go try on your own first.
– Code_Ninja
Aug 13 at 5:57
Updated the question
– vino
Aug 13 at 6:02
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
what you have tried so far?
– Suresh Kamrushi
Aug 13 at 5:52