Home  >  Article  >  Web Front-end  >  How to edit text by clicking on it without ajax_javascript skills

How to edit text by clicking on it without ajax_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:07:151086browse

New to creatElement, appendChild and other stuff! hehe!
Writing this thing may seem very immature to experts! But I wrote it entirely myself!
It’s not perfect yet, please give me guidance! ! " -//W3C//DTD HTML 4.0 Transitional//EN">

New Document .test{border:1px solid #ccc;background-color:#eee;width:200px;height:60px;}


Editable content

Editable content

< ;/BODY>



The final code to solve the browser problem

[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
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
Previous article:The simplest implementation of creating a namespace in JavaScript_javascript skillsNext article:The simplest implementation of creating a namespace in JavaScript_javascript skills

Related articles

See more