Aug 11
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Block F5 Key In IE & Mozilla</title>

<script language="JavaScript">

var version = navigator.appVersion;

function showKeyCode(e)
{
var keycode =(window.event) ? event.keyCode : e.keyCode;

if ((version.indexOf('MSIE') != -1))
{
if(keycode == 116)
{
event.keyCode = 0;
event.returnValue = false;
return false;
}
}
else
{
if(keycode == 116)
{
return false;
}
}
}

</script>

</head>
<body onload="JavaScript:document.body.focus();"
 onkeydown="return showKeyCode(event)">

</body>

</html>

This article has been posted at online dating site architect providing free online dating service.

Aug 11
<html>
<head>
</head>
<body>
<textarea id='clipText'>
Enter Text And Click Button To Copy Text To ClipBoard</textarea><br />
<input type=button id='bt'
onclick="clipboardData.setData('Text',document.getElementById('clipText').value);"
value="Copy" />
<input type=button
onclick="clipboardData.clearData('Text');" value="Clear" />
<input type=button
onclick="alert(clipboardData.getData('Text'));" value="Paste" />
</body>

This article has been posted at miami dating site architect providing free online dating service.

Aug 11
<html>
<head>
<script language="javascript">
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;
}
}
</script>
</head>
<body onload="javascript:document.getElementById('txt').focus();">
<input type="text" id='txt' onkeydown="return blockNum(this);" />
</body>
</html>

This article has been posted at miami dating site architect providing free online dating service.
Jul 03
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>javascript function for invoking btnclick event</title>
<script language="javascript" type="text/javascript" >
function TrigButton()
{
if(window.event.keyCode == 13)
{
if(document.getElementById('txt').value.length > 0)
{
document.getElementById('bt').focus();
document.getElementById('bt').click();
}
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txt" runat="server" onkeydown="TrigButton()" ></asp:TextBox>
<asp:Button ID="bt" runat="server" Text="Button" OnClientClick="javascript:alert('Button Triggered');" OnClick="bt_Click"/>
</div>
</form>
</body>
</html>
Jul 01
<html>
<head>
<script>
function ByPass()
{
var kCode = window.event.keyCode;
       if(kCode == 112)
      {
             alert('F1 Clicked'); // Alter Code As Your Wish
       }
}
</script>
</head>
<body onhelp="return false;" onkeydown="ByPass()">
</body>
</html>
Jul 01
<html>
<head>
<script>
function incr()
{
var len = document.getElementById('txt').value;
document.getElementById('txt').style.width = 75+len.length*4+'px';
}
</script>
<body>
<input type='text' id='txt' onkeydown='incr()' style='width:75px' />
</body>
</html>
Jul 01
<html>
<body>
<script language="JavaScript">

document.onmousemove = getCoordinate;
var mosX = 0 ;
var mosY = 0 ;
function getCoordinate(e)
{
mosX = event.clientX + document.body.scrollLeft ;

//clientX Property Sets or retrieves the x-coordinate of the mouse
//pointer's position relative to the client area of the window,
//excluding window decorations and scroll bars
//scrollLeft Property Sets or retrieves the distance between the
//left edge of the object and the leftmost portion of the content
//currently visible in the window.

mosY = event.clientY + document.body.scrollTop;

//clientY Property Sets or retrieves the y-coordinate of the mouse
//pointer's position relative to the client area of the window,
//excluding window decorations and scroll bars.
//scrollTop Property Sets or retrieves the distance between the top
//of the object and the topmost portion of the content currently
//visible in the window.

document.title = "(X Co-Ordinate » "+ mosX +") ( "+"Y Co-ordinate » " +mosY+")";
document.getElementById('dx').innerHTML =
"Mouse X ==» "+mosX+"<br>"+"Mouse Y ==» "+mosY;

return true
}

</script>
<div id="dX"></div>
</body>
</html>
Jul 01
Script
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Find KeyCode</title>
<script language="JavaScript">
function TriggeredKey(e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
alert("keycode: " + keycode);
}
</script>
</head>
<body onkeydown="TriggeredKey(this)">
</body>
</html>
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
Jul 01
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"

>
<html>
<head>
    <title>Custom Alert Box</title>
    <meta http-equiv="Content-Type" content="text/html;

charset=utf-8">

    <script type="text/javascript" language="javascript">
document.onclick=disableEvents
document.oncontextmenu=disableEvents
var ef=0
function custAlert()
{
ef=1
var ids
ids=document.getElementById('alert')
ids.style.left=300;
ids.style.top=150;
ids.style.visibility="visible"
}

function disableEvents()
{
if(ef)
return false;
}
    </script>

</head>
<body bgcolor="#ffffff" onload="custAlert();">
    <form id="Form1" method="post" runat="server">
        <div align="center" id="alert" style="border: 2px solid gray; background: #cdeb8b
url('images/img3.gif') repeat-x; left: 240; visibility: hidden; width: 349; color: red; position: absolute;
            top: 104; height: 108">
            <br>
            <h3 style="left: 0; width: 152; position: absolute; top: 0; height: 40; ali

gn: Left">
                <font color="#356AA0">Custom Alert Box</font></h3>
            <img style="left: 336px; width: 6px; position: absolute; top: 8px; height: 6px" height="6"
                alt="Close" src="images/Cross.png" onclick="ef=0;document.getElementById('alert').style.visibili

ty='hidden';">
            <br>
            <hr width="99.03%" size="1" style="left: 0px; width: 99.03%; position: absolute;
                top: 32px; height: 1px">
            <div id="msg" style="width: 349; color: #356aa0; height: 85; text-decoration: none">
                NJoy Programming<p>
                    Success be Yours</div>
            <p>
        </div>
    </form>
</body>
</html>