Inserting text at cursor in a textarea, with Javascript

后端 未结 2 503
北恋
北恋 2020-11-28 15:26

I\'ve had a look round the web for solutions, and there are some, but they all seem to split code into supporting IE and Firefox. I was wondering if there\'s a more elegant

2条回答
  •  清酒与你
    2020-11-28 16:08

    implement both: the code that is supporting FF and the Code supporing the IE. You can use Frameworks to write Code for both browsers. Than the Framework will do the work of splitting the differences between the browsers.

    It's sad, but browsers aren't 100% compatible!

提交回复
热议问题