Posted By


perelin on 07/17/06

Tagged


Statistics


Viewed 37 times
Favorited by 0 user(s)

changeInnerHtml


/ Published in: JavaScript
Save to your folder(s)

// Changes the innerHTML of the first arg (object ID) into the secong arg (string)


Copy this code and paste it in your HTML
  1. function changeInnerHtml()
  2. {
  3. var args=changeInnerHtml.arguments;
  4. if ((obj=MM_findObj(args[0])) != null)
  5. {
  6. obj.innerHTML = args[1];
  7. }
  8. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.