'onBounce' Example : onBounce « Event Handlers Reference « JavaScript Reference

'onBounce' Example

    
<head>
<script language="JavaScript">
    function function1() {
        alert("The marquee content reached one of its edges") 
    } 
</script>
</head>
<body>
    <marquee id="myM" 
             width=500 
             behavior="alternate" 
             onbounce="function1()" 
             bgcolor="#99ffff">www.java2s.com</marquee>
</body>

    
      
      








Related examples in the same category

1.'onBounce' Syntax and Note
2.'onBounce' Properties
3.'onBounce' is applied to