Introduction to visual HTML content editing using JScript

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.