<!DOCTYPE html>type="text/css"#img1{position:absolute;left:0px;top:0px;z-index:-1}function changeStackOrder(){document.getElementById("img1").style.zIndex="1";}This is a Headingid="img1" src="bulbon.gif" width="100" height="180"type="button" onclick="changeStackOrder()" value="Change stack order"Default z-index is 0. Z-index -1 has lower priority.