Posted by: viralsarvaiya on: June 11, 2009
to check the java script is enable or disable, it is too easy use
<noscript>
<meta http-equiv=’refresh’ content=’0;url=http://yoursite.com/yourdirectory/yourfile.htm’/>
</noscript>
here, if the java script is disable then it redirect to you site’s error page.if u want to write any thing instead of redirect then you can write any HTML tag with you message in .
Posted by: viralsarvaiya on: June 8, 2009
Make one javascript file named “dm.js” and put below code into it.
********************************************
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 = “”;
function clickIE() { if (document.all) { (message); return false; } }
function clickNS(e) {
if
(document.layers || (document.getElementById && !document.all)) {
if (e.which == 2 || e.which == 3) { (message); return [...]
Recent Comments