Home > Web Front-end > JS Tutorial > body text

Implementation method of automatically filling in forms in javascript_form effects

WBOY
Release: 2016-05-16 18:30:02
Original
1602 people have browsed it

There is no technical innovation in this article. As long as you know a little Javascript technology, you can write it.
Step one:
View the source code on the page and find out the HTML controls contained in the Form that need to be filled in, such as:





Step 2: Write code
javascript:mainfrm.username.value="stangray";mainfrm.submit.focus();

Step 3:

Open the browser's "Favorites" and add a URL favorite in the "Links" category.

In the URL item: add the code written above, you can also specify the shortcut key, fill in the "auto-fill form" in the name (the above is set in IE browser, different browser favorites will be used differently The same, but almost the same)

Step 4: Test
Open the URL where you want to fill in the form in the browser, and then click the "Link" bar (this menu bar is typing On the right side of the address bar,

After unlocking the toolbar, you can drag it out) and the "Autofill" link will be fine.

Have your wisdom to modify the code! More functions can be achieved.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template