0

Special Keyboard Key(s) Code

Special Keyboard Key(s) Code

KeyCode
Backspace 8
Tab 9
Enter 13
Shift 16
Ctrl 17
Alt 18
Pause/Break 19
Caps Lock 20
Esc 27
Page Up 33
Page Down 34
End 35
Home 36
Left Arrow 37
Print Screen 44
Delete 46
F1 112
F2 113
F3 114
F4 115
F5 116
F6 117
F7 118
F8 119
F9 120
F10 121
F11 122
F12 123
0

JavaScript Get Key Values Or Code On KeyDown

0

Restrict User From Ctrl Key Press

0

Get Mouse Position Using JavaScript

0

Dynamically Increase The Size Of The TextBox Using JavaScript

Trap F1 key in IE, ByPass Showing Help Window

function ByPass()
{
var kCode = window.event.keyCode;
if(kCode == 112)
{
alert('F1 Clicked'); // Alter Code As Your Wish
}
}
0

How To Use Sleep Function Using JavaScript

function sleep()
{

var Sleep = setTimeout("alert('Hi Have A Nice Time And Day ')",2000);
// 2000 Millisecond(2 sec)

}
0

Restrict Numberic Input In TextBox

function blockNum(e)
{
var keyVal =(window.event) ? event.keyCode : e.keyCode;
if (window.event) keyVal = window.event.keyCode;
if((keyVal > 47 && keyVal < 58) || (keyVal > 95 && keyVal < 107))
{
return false;
}
}
0

Restrict Alphabet Input In TextBox

function blockChar(e)
{
var keyVal =(window.event) ? event.keyCode : e.keyCode;
if (window.event) keyVal = window.event.keyCode;
if((keyVal > 64 && keyVal < 93))
{
return false;
}
}
0

how to call asp button click event using javascript

how to call asp button click event using javascript

function javascript()
{
var bt = document.getElementByID(<%=AspButtonID.ClientID%>);
bt.click();
}
0

MS recommends installing on NTFS drive

IIS installations.
MS recommends installing on NTFS drive
0

javascript validation for email - id

function email()
{

var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
var emailid=document.getElementById("<%=txtEmail.ClientID %>").value;
var matchArray = emailid.match(emailPat);
if (matchArray == null)
{
alert("Your email address seems incorrect. Please try again.");
document.getElementById("<%=txtEmail.ClientID %>").focus();
return false;
}
}
0

Javascript validation for maximulength for asp.net multiline textbox

function maxlength()
{
var tb= document.getElementById('<%=txtproblem.ClientID %>').value;

var count=tb.length;
var value2=100-count;
if(count>100)
{
alert("Can't enter more that 100 characters of text");
document.getElementById('<%=txtproblem.ClientID %>').value = document.getElementById('<%=txtproblem.ClientID %>').value.substr(0, 100);//(document.getElementById('<%=txtproblem.ClientID %>').value.length - 1));


}

}
0

Refresh conten place holder without refreshing masterpage

meta equiv="Page-Enter" content="blendTrans(Duration=0)"
meta equiv="Page-Exit" content="blendTrans(Duration=0)"

place the above two lines in bewteen the head tags in the masterpage
add ' < ' this symbol at the starting and ending of the two line above


solution for not refreshing masterpage.
Note : remove the comments .