Find currenly which field is having focus on html page?

Ads
 

Find currenly which field is having focus on html page?

View Answers

July 6, 2009 at 5:03 PM

Hi Friend,

Try the following code:

<html>
<head>
<script>
function whichBlur(f){
alert(f)}
</script>
</head>
<body>
<form name=Form1 method="post">
<input name="Form1" type="submit" value="Form1" onfocus="whichBlur(this.name)">
</form>
<form name=Form2 method="post">
<input name="Form2" type="submit" value="From2" onfocus="whichBlur(this.name)">
</form>
</body>
</html>

Thanks

Ads









Related Tutorials/Questions & Answers:
HTML pages.
find out in servlet which button was clicked on an html page
Advertisements
dynamic web pages in html
jquery search for html pages
Text Field in HTML
Find focus of the keyboard cursor when ctrl+f is clicked in swing
How to chage content in HTML pages?
Which software field is best?
Which IT field is best for future?
How to delete a directory which is having some files already.
how to find which user has modified the file
Find the percentage of words which starts with a vowel in a file
ModuleNotFoundError: No module named 'django-html-field'
ModuleNotFoundError: No module named 'django-html-field'
regarding out put display in html text field
ModuleNotFoundError: No module named 'orbis-plugin-storage-html-pages'
Can not input value into text field which use sx:datetimepicker
Can not input value into text field which use sx:datetimepicker
HTML color codes
find the sql query for the output having two table names ie, homeworklinks,homework_attachments
Fetched Record from database show into text field of html page
ModuleNotFoundError: No module named 'pager'
javascript focus input
HTML code example
Oracle releases HTML 5 which focuses Java EE 7
Create an HTML file AddCookies.html which contains four text boxes
Password Field in HTML
Version of jsptags>pager-taglib dependency
ModuleNotFoundError: No module named 'django-pager'
ModuleNotFoundError: No module named 'fluentcms-pager'
HTML

Ads