JavaScript DHTML/Dojo toolkit/setSelectable
Make tag not selectable
<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/"
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
</head>
<body onLoad="dojo.setSelectable("myDiv", false);">
<div id="myDiv">I am myDiv</div>
</body>
</html>
Make tag selectable
<html>
<head>
<script type="text/javascript">
var djConfig = {
baseScriptUri : "js/dojo/"
};
</script>
<script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
</head>
<body onLoad="dojo.setSelectable("myDiv", true);">
<div id="myDiv">I am myDiv</div>
</body>
</html>