PHP Classes

File: selection_capture.js

Recommend this page to a friend!
  Classes of Free Ment   PHP Live Chat Browser   selection_capture.js   Download  
File: selection_capture.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Live Chat Browser
Live chat with users of the same or another site
Author: By
Last change:
Date: 1 year ago
Size: 443 bytes
 

Contents

Class file image Download
function getSelectionText() { var text = ""; if (window.getSelection) { text = window.getSelection().toString(); } else if (document.selection && document.selection.type != "Control") { text = document.selection.createRange().text; } return text; } document.onmouseup = document.onkeyup = document.onselectionchange = function() { document.getElementById("sel").value = getSelectionText(); };