Before :: Insertion |
Example
Original HTML <div> <p id="modern_major_general">I am the very model of a modern major general.</p> </div>
Javascript new Insertion.Before('modern_major_general', "<p>In short, in all things vegetable, animal, and mineral...</p>");
Resulting HTML <div> <p>In short, in all things vegetable, animal, and mineral...</p> <p id="modern_major_general">I am the very model of a modern major general.</p> </div>
|
Prototype API 1.5.0 - prototypejs.org