M
m miller
I have the following javascript in my html:
<script language="javascript">
function setfocus()
{
if (document.body.style.cursor="default")
{
document.body.style.cursor="wait";
document.Form1.txtPartno.focus();
document.Form1.txtPartno.select();
}
else
{
document.body.style.cursor="default";
document.Form1.txtPartno.focus();
document.Form1.txtPartno.select();
}
}
</script>
In my codebehind I have: Me.btnFind.Attributes.Add("onclick", "setfocus()")
It seems to run fine for at least 2 to 3 clicks and then issues a send error
report dialogue saying:
'Internet Explorer has encountered a problem and needs to close.',
crashing, of course, IE.
I have IE 6 and .NET 2003. I have encountered this on Windows XP Pro,
Windows 2000 Pro and Windows 2000 Server.
I am not a javascript programmer so I have no clue as to why this is
happening.
TIA,
Marc Miller
<script language="javascript">
function setfocus()
{
if (document.body.style.cursor="default")
{
document.body.style.cursor="wait";
document.Form1.txtPartno.focus();
document.Form1.txtPartno.select();
}
else
{
document.body.style.cursor="default";
document.Form1.txtPartno.focus();
document.Form1.txtPartno.select();
}
}
</script>
In my codebehind I have: Me.btnFind.Attributes.Add("onclick", "setfocus()")
It seems to run fine for at least 2 to 3 clicks and then issues a send error
report dialogue saying:
'Internet Explorer has encountered a problem and needs to close.',
crashing, of course, IE.
I have IE 6 and .NET 2003. I have encountered this on Windows XP Pro,
Windows 2000 Pro and Windows 2000 Server.
I am not a javascript programmer so I have no clue as to why this is
happening.
TIA,
Marc Miller