Using JScript to compile Visual HTML content editing is actually old. Without this, many blog websites will be eclipsed. But there are actually many features that we don't know about:
When editing HTML, the configuration controller is generally iframe(id_iframe1). you only need to pass iframe1.doc ument. designMode = "on"; to bring it into the design mode.
2. To enable the multi-choice, 2D location, and instant resizing functions, You can execute:
Iframe1.document.exe ccommand ("2d-position", true, true );
Iframe1.document.exe ccommand ("multipleselection", true, true );
Iframe1.document.exe ccommand ("liveresize", true, true );
3. the clever use of innerhtml and innertext can forge the "Design Pattern" and"CodeEffect of switching mode :)
4. Document. selection can be helpful in many cases, such as operating at the cursor position and determining the current focus control.
Ms On the msdn websiteArticleCreating editable web pages in Internet Explorer 5.5 outlines the basics of visual HTML page editing.