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