தமிழ் கேள்வி பதில் தளம். தமிழ் கணினி சார்ந்த கேள்விகளை இங்கே கேட்கவும்.

Ask a Tamil Question & Get answers in Tamil. Ask in tamil computer questions and get answers by tamil computer experts online.

1k questions

1.1k answers

35 comments

323 users

தங்களின் தொழில்நுட்பம் மற்றும் ஏனைய கேள்விகளை இங்கே கேட்கவும். TECHதமிழ் வாசகர்கள் மற்றும் பிற வல்லுநர்கள் உங்களுக்கு தீர்வுகளைத் தருவார்கள்.

Categories

இலவச மின்னஞ்சல் சந்தா
0 votes
எனது Blog ல் உள்ள  Search Bar ல் Type செய்ய முடியவில்லை?
நான் Right click and Text Selection Disable செய்துள்ளேன்,இதுதான் காரணம் என நினைக்கிறேன்.
Disable ஐ Remove செய்யாமல் இதனை எவ்வாறு சரி செய்வது?
Please  sir  Help  Me ..........
in Internet by வல்லுநர் (3.1k points)

Please log in or register to answer this question.

1 Answer

0 votes
<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
    var message = "No Copying Please!";
    function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){    alert(message); return false; }
    if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {    alert(message);     return false; } }
    document.onmousedown = rtclickcheck;
</SCRIPT>


 try this code
by வல்லுநர் (3k points)
...