N
NiallM
Any chance anyone could spare a sec to see where i'm going wrong here?
On loading a page i'm trying to sefocus to a button on the page, (the only
button) so that I can press return and it will have the effect of clicking
it.
Here is what I'm doing at the moment but it's still not passing focus...
<HTML>
<HEAD>
<script type="button/javascript">
function setFocus()
{
document.button.focus();
}
</script>
</HEAD>
<TITLE>Successful logout</TITLE>
<BODY class="PageBody" onload=setFocus() >
<BR><BR><BR><BR><BR><BR><BR>
<TABLE class="WidgetPanel">
<TR>
<TD class="WidgetCell" align="center">
<SPAN class="DataLabel">
You have been logged out successfully.
<BR><BR><BR><BR><BR>
</SPAN>
</TD>
</TR>
<TR>
<TD align="center">
<INPUT class="button" type="button" onclick="location.replace(
'./index.jsp' )" value="Login" />
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Cheers if anyone has any idea's
N.
On loading a page i'm trying to sefocus to a button on the page, (the only
button) so that I can press return and it will have the effect of clicking
it.
Here is what I'm doing at the moment but it's still not passing focus...
<HTML>
<HEAD>
<script type="button/javascript">
function setFocus()
{
document.button.focus();
}
</script>
</HEAD>
<TITLE>Successful logout</TITLE>
<BODY class="PageBody" onload=setFocus() >
<BR><BR><BR><BR><BR><BR><BR>
<TABLE class="WidgetPanel">
<TR>
<TD class="WidgetCell" align="center">
<SPAN class="DataLabel">
You have been logged out successfully.
<BR><BR><BR><BR><BR>
</SPAN>
</TD>
</TR>
<TR>
<TD align="center">
<INPUT class="button" type="button" onclick="location.replace(
'./index.jsp' )" value="Login" />
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Cheers if anyone has any idea's
N.