Find currenly which field is having focus on html page?

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









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

Ads