...

Gecko text selection manipulation

frito
01-22-2005, 02:26 AM
Is there a way to paste text into the current selection with Netscape / mozilla browsers using javascript? I tried looking at the Gecko's DOM, but can't seem to find the solution if there is any.

I can do it with IE:

document.selection.createRange().pasteHTML("html");

Any help would be appreciated.

fci
01-22-2005, 02:32 AM
http://www.quirksmode.org/js/selected.html

frito
01-22-2005, 02:35 AM
I want to paste or replace the current selection...

frito
01-22-2005, 02:50 AM
Found a solution... thanks anyway! :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum