|
-
Apr 27th, 2001, 07:34 AM
#1
Thread Starter
Lively Member
Hyperlink - Easy one
How do you set focus to a hyperlink when web page opens??
-
Apr 27th, 2001, 07:38 AM
#2
Fanatic Member
mate, i dont think it is possible but if it is then cool
-
Apr 27th, 2001, 10:25 AM
#3
New Member
i think thats impossible, you have to click on a hyperlink you cannot focus like you can on a text box. as below
document.LoginForm.Username.focus();
sorry about that mate,
if you hear differently then respect to who ever figures it out.
-
Apr 27th, 2001, 11:20 AM
#4
Frenzied Member
umm.... of course it's possible... same way you would do it to any other element:
Code:
<HTML>
<HEAD>
<SCRIPT language=javascript>
function window_onload()
{
MyLink.focus();
}
</SCRIPT>
</HEAD>
<BODY onload="window_onload()">
<A name=MyLink id=MyLink HREF="Home.htm">Click Here</A>
</BODY>
</HTML>
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|