Posts filed under ‘HTML’
SQL Script to Find Week Days of a Year and J-Query
hi,go through below links
Get Date of All Weekdays or Weekends of the Year(By Pinal Dave)
Image Gallery using j-query
Go through below link to show image gallery in web site with the use of J-Query
Javascript to allow only numeric in text box
hi , many times we come to situation when in our website we just want to allow numeric value in text box.
This can be done by the client side java script.
Below is the script you need to insert
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;
}
and here is how to attach this function to your text box either its html or asp.net text box.
onkeypress=”return isNumberKey(event)”
Disable Right click Context menu on Web Page
There are some situation when we want to hide our source code from user. User can easily see your web page source code by right click on page.
There are so many scripts available to disable right click. you can even open context menu by keyboard.
This is some what easy and hands on attribute to disable right click
Just write..
<body oncontextmenu=”return false;”>
This will not allow user to open context menu by key board or by mouse. Just try it..