Forum Moderators: open
In particular, the "CreateLink" command inserts a hyperlink on the current selection by activating a dialog box. The dialog box (which is part of IE, not controlled by my script) allows me to set the URL. What if I also want to set the "target"?
Is there another execCommand that lets me put more attributes into an existing tag?
Sticky me if you have ANY experience using execCommands! thanks.
Not that I know of. I once built my own little href-tag-creator: a popup window with fields for target, title, class, id et cetera. Onsubmit the values are passed to a function that pastes them into a nice string, which is pasted around the selected text. Not that hard if you know a little Javascript.