javascript - Browse Image and pass it to popup window -


i browse image in html script , open popup window in browsed image appear.

right opening image in original script. how can pass showimage.html popup?

function newwindow(event){             var pop = window.open("showimage.html", "image","width=200, height=100");             document.getelementbyid('output');             output.src = url.createobjecturl(event.target.files[0]);          }
<label>          browse file          <input id="browse" type="file" style="display: none" checked= true onchange="newwindow(event)">      </label>        <img id="output"/>

you can add #image.jpg

var pop = window.open("newimage.html#image.jpg", "popupwindow","width=200, height=100"); 

so in newimage.html you'll need script this:

location.hash 

lol

you can use create image hash.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -