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