javascript web page editing (testing)

Started on the old forum in January 2011 · view the original in the archive · old links redirect here

#editing #javascript #web-page

No replies · 316 views · started 15 years ago · 1 min read

something else Fellow · 2,296 posts #1

Heres a handy code if you want to see what something would look like on your site without having to bother with saving / uploading to server etc.. (it can be used for other malicious purposes as well)

simply copy and paste this code into your browser:

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

This can also be done another way on opera by pressing Ctrl U (view source) and then editing the source and then pressing "Apply Changes"

🙂

Added after 3 minutes:

after you have pasted that code into your browser you can edit your page dynamically by click on something in the page and deleting it or editing it etc

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close