<!DOCTYPE html>
<html>
<head><title></title>
<script>
function popUp() {
var popDiv = document.getElementById("popDiv");
popDiv.style.display = "block";
popDiv.style.width = "500px";
popDiv.style.height = "300px";
popDiv.style.position = "absolute";
popDiv.style.top = "50%";
popDiv.style.left = "50%";
popDiv.style.margin = "-150px 0 0 -200px";
popDiv.style.background = "white";
popDiv.style.fontSize = "1.3em";
popDiv.style.border = "thick solid black";
popDiv.style.padding = "20px 60px";
popDiv.innerHTML = "<img src=\"myimage.jpg\">";
}
</script>
</head>
<body>
<div id="popDiv"></div>
<button onclick="popUp();">Click Me</button>
</body>
</html>