Title: Message
Lets go to www.google.com

 

In the URL/address bar, clear any text there.

Type:    _javascript_:document.write(‘omg where did google go’ );

Press enter.

No onload, but google is now gone!

----------------------------------------------------------

 

Thanks.  One last question to clean up...

 

oMyDiv = document.createElement('div');

document.body.appendChild(oMyDiv);

sMyText = 'Howdy!  This is western text!';

oMyDiv.innerHTML = sMyText;

oMyText = document.createTextNode(sMyText);

oMyDiv.appendChild(oMyText);

Does one method of adding innerHTML have benefits / features that the other does not?

 

Sam

 

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to