<html> <body> <body onclick="alert(document.selection.type);"> <p>Select this text</p></body> </body> </html>