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); Quote Link to comment Share on other sites More sharing options...
fenway Posted March 14, 2007 Share Posted March 14, 2007 Are you sure FF supports that function? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.