<script type="text/javascript"
src="prototype.js"></script>
[HTML]
<div id="targetBox">
ここのエレメントに対して Insertion.Beforeが実行される。
</div>
:
:
[JavaScript]
// "targetBox"エレメントの前にテキストを挿入します
new Insertion.Before("targetBox", "<b>挿入したテキスト</b>");
[Ajax - prototype.js - 文字列の挿入・変更]
エレメントの終了タグの後に文字列を挿入する 【Insertion.After】
エレメントの最初の要素として文字列を挿入する 【Insertion.Top】
エレメントの末尾に文字列を挿入する 【Insertion.Bottom】
エレメントの内容を変更する 【Element.update】