Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript selection in iframe

var iframe = document.getElementById('myIframe');
var idoc = iframe.contentDocument || iframe.contentWindow.document; // ie compatibility
var sel = idoc.getSelection();
var range = sel.getRangeAt(0);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #selection #iframe
ADD COMMENT
Topic
Name
5+6 =