Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 19:07:15
Original
1149 people have browsed it

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
]
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template