Wednesday, April 8, 2009

JS : Tạo 1 pop-up khi load trang web

[FD's BlOg] - Bài viết này mình xin giới thiệu về lệnh Onload trong Javascript. Cụ thể trong ví dụ dưới đây là tạo 1 pop-up khi load xong trang web.

Code:

<html>
<head>

<script type="text/javascript">

function pageloads()
{
alert ('Thông báo cần hiển thị ở pop-up')
}

</script>

</head>

<body onload="pageloads()">

</body>
</html>

Chúc các bạn thành công.
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 nhận xét

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
© Sổ ghi chú
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0
Posts RSSComments RSS
Back to top