|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to set focus?
How can i set focus to one field automatically when a page is loaded?
with either javascript or php! |
|
#2
|
|||
|
|||
|
Message Moved
Thread moved from 'General Chat' to 'Client Side Things' by nazly.
Reason: Problem related to Client Side |
|
#3
|
|||
|
|||
|
RE: How to set focus?
Bit of Javascript...
Code:
<html>
<head>
<script language="JavaScript">
function focusIt(ele)
{
ele.focus();
}
</script>
</head>
<body onLoad="focusIt(document.form1.txt)">
<form name="form1">
<input type=text name="txt">
<input type=submit name="submit" value="Submit">
</form>
</body>
</html>
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > How to set focus? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|