Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in using DHTML Object Model  RSS feed

Kumar Anupam
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am generation HTML file on Web by using .htc file.

Now selecting the stylesheet available in the combo box and based on that CSS classes. I want to add this stylesheet in the head part of it. while for other tags I am not facing any problem as each and every control is inserted where my cursor is or in place of selection.

At most of the places we are using this code to put aur htm tags in the editor.

var oSelection = element.editor.DOM.selection;
var oTR = oSelection.createRange();

Please Provide me some help. I need it desperately.

Very very very thanks in advance.

Kumar Anupam
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!