+ 4

NOT able to understand : autofocus AND autocomplete.

Please help. THANK YOU.

2nd Apr 2018, 1:40 PM
NIGHT STAR
NIGHT STAR - avatar
3 ответов
+ 4
- Autofocus is to focus the form when the user enter a website. The web will automatically goes to this form when the user enter a website. It is use in <input> tag. - Autocomplete is when you click to fill in a form. It will make a suggestion based on your last input. There is an example of autocomplete attribute. https://code.sololearn.com/WyCM4Z3wjpHZ/?ref=app
2nd Apr 2018, 1:58 PM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 4
This autofocus stand alone attribute. You will see that the form is at the bottom of the webpage. But it automatically go to the form. In this code, I give this attribute in name textbox (<input> tag). While clicking run. Try to go to the top of the webpage. https://code.sololearn.com/WCvRSJt9nd3K/?ref=app
3rd Apr 2018, 9:25 AM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 2
Please give example of autofocus also..... // If possible
3rd Apr 2018, 5:24 AM
NIGHT STAR
NIGHT STAR - avatar