Basically I need a link on the main page (A) which opens a popup window (B), which contains the file selector (<input type=file />) and a 'submit' button.
When you hit submit, the popup disappears and a preview of the selected image appears on page A within a <div> tag I'm guessing.
So far I have this:
And a simple popup.html
At the point of clicking 'submit' I'm hoping to get a preview of the image in div 'img1' tag.
I had this as a sample a while back but have a new PC now and lost it.