Home > Web Front-end > HTML Tutorial > FIREFOX cursor loss problem. _html/css_WEB-ITnose

FIREFOX cursor loss problem. _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:18:52
Original
1428 people have browsed it

firefox ,光标

 var selection = this.ifr.contentWindow.getSelection();
        var range;
        if (selection) {
            range = selection.getRangeAt(0) ;
         } else { 🎜> oLastNode = oFragment.lastChild; / / Used to correct the position of the editing cursor
Range.insertNode(oFragment);
range.setEndAfter(oLastNode); //Place the editing cursor after we insert the content
Range.setStartAfter(oLastNode);
selection.removeAllRanges(); //Clear all selections, otherwise the content we inserted and the text just now are selected
selection.addRange(range); //Insert content
this.edc.body. focus();
Is there anything wrong with this code? Why do icons disappear in Firefox? I beg God to tell me the reason.


Reply to the discussion (solution)
Isn’t there anyone who can give me some advice?

This is a JS problem, please post it to the JS forum.

JS section not found

There is a javascript section in the web development section

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