- <script>document.getElementById("myElementID").contentEditable = true;</script>
- This technique is a proprietary Internet Explorer 5+ only extension; Mozilla has a similar extension, but the syntax is different. BJ
Demos
- Did you know that each HTML page you create actually has two source codes?
- Original source-code that you wrote
- The source code that the users web browser has interpreted.
- This demo shows how to dynamically alter the browser interpreted code using Javascript. This allows you to do some clever things, such as anti-spam email links and content replacement.
Testing
Test it#javascript - make sure that script does exactly what its meant too.