Thierry Posted March 14, 2007 Share Posted March 14, 2007 I have this textarea with buttons above it to allow for text to get bold tags and everything. In IE this works fine with CreateRange(); but in Firefox it doesnt work. I tried to use document.getSelection(); instead but no results, anyone see what I am doing wrong?? var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ var text = document.selection.createRange().text;}else{ var text = document.getSelection();} window.alert(text); Link to comment https://forums.phpfreaks.com/topic/42668-problem-getting-selection-with-firefox-20/ Share on other sites More sharing options...
fenway Posted March 14, 2007 Share Posted March 14, 2007 Are you sure FF supports that function? Link to comment https://forums.phpfreaks.com/topic/42668-problem-getting-selection-with-firefox-20/#findComment-207119 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.