In a page I have when the user left-clicks the page a Input box for a form gets the focus. But if the user right-clicks the page the Input box is not getting the focus. I'd like the Input box to get the focus no matter where on the page the user clicks be it right-click or left-click. Right now there is no context menu when the user right-clicks. Do you think that's the problem? Any ideas how to get this right-click left-click Input box get's focus with JavaScript? Thanks.
Here's what I have so far:
<script type="text/javascript" for="document" event="onclick" >
<!-- Begin
//window.event.sr cElement.cancel Bubble = true;
//window.event.re turnValue = true;
if (frm1.UID.value == ''){
document.frm1.U ID.focus();
}
// End -->
</script>
The UID is the ID for the Input box; frm1 is the name of the Form; this script resides within the <HEAD> tag.
--
George Hester
_______________ _______________ ____
Here's what I have so far:
<script type="text/javascript" for="document" event="onclick" >
<!-- Begin
//window.event.sr cElement.cancel Bubble = true;
//window.event.re turnValue = true;
if (frm1.UID.value == ''){
document.frm1.U ID.focus();
}
// End -->
</script>
The UID is the ID for the Input box; frm1 is the name of the Form; this script resides within the <HEAD> tag.
--
George Hester
_______________ _______________ ____
Comment