Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Javascript onload popup (See related posts)

Place the following in the BODY tag.


<script type="text/JavaScript">
<!--
function popupMsg(msg) { //v1.0
  alert(msg);
}
//-->
</script>

onLoad="popupMsg('message here')"

Comments on this post

llucifer posts on Mar 30, 2007 at 03:43
What's the key? Why not use the following?

<body onLoad="alert('message here')"/>

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts