...

View Full Version : Find words in HTML pages



bnelson
09-20-2005, 10:46 AM
I want to be able to insert a document.write function into a HTML page. I want to do this after the <body> tag. Is there a way to do this so after the <body> tag is found I automatically insert the document.write tag into the page.

This document.write will be a javascript function that changes the color of the background.

I must emphasize I want to do this dynamically like on any HTML page I bring up, that code will be inserted.

jalarie
09-20-2005, 05:08 PM
I can't make it dynamic, but I can make it easy. Create a new bookmark whose value is:

javascript:document.bgColor='#ccccff';void(0);

Feel free to use any other color that you wish, but notice that "bgColor" has an upper-case "C" in the middle of lower-case letters.

Once you have a page displayed on your screen, activate the bookmark which you created above.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum