It is my Computer Notes. Using Guide : object-key or object-key-key e.g. Step 1 Blog Search : [mysql-run] and then Step 2 ctrl+F [mysql-run] {bookMark me : Ctrl+D}
2013年8月1日 星期四
html new window new.window with image
button with image with new window
<input type="image" src="images/Email-icon.png" alt="email" width="30" height="<%=HelpIconHeight%>" onClick="JavaScript:newWindow('userEmail.jsp')">
reference 1
<button onClick="JavaScript:newWindow('userEmail.jsp')">Email </button>
reference 2
<a href="userEmail.jsp">
<img border="0" style="float:right;" src="images/Email-icon.png" width="30" height="<%=HelpIconHeight%>">
</a>
<script>
// Popup window code
function newWindow(url) {
popupWindow = window.open(
url,
'popUpWindow','height=300,width=450,left=10,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言