25/4/14

Code tạo các loại Popup Window từ A đến Z chuẩn



1. JavaScript Popup Windows
Code:
<input type="button" value="Xem thử" onclick="window.open('http://gamebw.blogspot.com/','popUpWindow','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');">

                                                               

2. HTML Popup Window Code
Code:
<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(
url,'popUpWindow','height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes')
}
</script>
<a href="JavaScript:newPopup('http://gamebw.blogspot.com/');">Xem thử</a>
                                                      
                                                              Xem thử

3. JavaScript Popup Boxes (Hộp thông báo)
Code:

<input type="button" onclick="alert('Chào, Bạn hãy nói cho bạn của bạn về GameBW.blogspot.com!');" value="Xem thử" />



Không có nhận xét nào :

Đăng nhận xét

Bài đăng mới