Is there a way to trigger this javascript function using C# code in the backend when the page loads? Your assistance is greatly appreciated, thank you.
<script type="text/javascript">
document.onkeydown = function (event)
{
event = (event || window.event);
if (event.keyCode == 20)
{
alert('Caps not allow');
}
}
</script>