Home >Web Front-end >CSS Tutorial >Memorable content editor_CSS/HTML implemented using #default#userdata component

Memorable content editor_CSS/HTML implemented using #default#userdata component

WBOY
WBOYOriginal
2016-05-16 12:11:551779browse

Normal debugging of the following code requires IE5.5 or above browser


[Ctrl+A to select all Note: If you need to introduce external Js, you need to refresh it to execute ]<script> function DoSave(){ foo.setAttribute("content", foo.innerHTML); foo.save("EditContent"); } function DoLoad(){ foo.load("EditContent"); content = foo.getAttribute("content"); if (content != null) foo.innerHTML=content; } function DoClear(){ foo.innerHTML = ""; } </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn