Wednesday, December 3, 2008

To block copy, paste etc on web input box

input name="CorporateSignonPassword" style="width:100px" type=password AUTOCOMPLETE="off" onClick="showRegret()" onCopy="return false" onDrag="return false" onDrop="return false" onPaste="return false"

function showRegret()
{
/*If the error message should pop-up (when the service is down) the value of the variable downtime should be like
var downtime="19:25 AM/PM" test

FME should only change the time along with AM/PM . DONOT give space between 2 double quotes if the service is running

If the service is up and running the value of the variable downtime should be
var downtime="19:25 AM/PM"

*/

//-- The downtime below is to be edited start--------
var downtime="";

//-- The downtime above to be edited ends--------
if (downtime =="")
{
return flag;
}

No comments: