Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
JavaScript URL isn't working
Old 06-25-2010, 09:28 PM JavaScript URL isn't working
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Hey dudes,

I'm trying to change around websites (not permanently, just for fun) and tried this:

You know how some JS 'hacks' you type into the URL? I know about the contentEditable one, but I tried to make a simple one:

javascript: document.body.style.background='red';

But that just gives me a blank page saying 'red'. WTH?

How can I get it so the website actually turns red? Thanks
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-26-2010, 12:16 PM Re: JavaScript URL isn't working
logic ali's Avatar
Super Talker

Posts: 104
Trades: 0
Code:
javascript:void( document.body.style.backgroundColor='red' )
If you do it on this forum, you will see a change only on the footer.
logic ali is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to JavaScript URL isn't working
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.40670 seconds with 12 queries