onFinish

書式

<marquee onFinish="イベント発生時の処理">
マーキーオブジェクト.onfinish = "イベント発生時の処理"

説明

marqueeタグで文字の移動が終了した時に発生します。Windows版Internet Explorerのみ利用することができます。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<script type="text/javascript"><!--
window.onload = function() {
document.getElementById("mqe").onfinish = function() {
document.getElementById("result").innerHTML = "Finish !!";
}
}
// --></script>
</head>
<body>
<marquee id="mqe" loop="1">sample text</marquee>
<div id="result"></div>
</body>
</html>