FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Typing anything you want at the top of a page javascript hlp

 


Dougie1
I would like to make it so that I could just type something like:

javascript:document.write('hello');

Into the address bar and make it write hello at the top of any page. How would I make it do this without doing it on a blank page? Ta.
MrBlueSky
You can do something like this:

Code:

javascript:document.body.innerHTML="helloi"+document.body.innerHTML; void 0;
Dougie1
Thanks so much Very Happy
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.