Home > Article > Web Front-end > Code example for obtaining file upload URLs in multiple JavaScript forms
Suppose there are multiple forms in a web page, and one of the forms has file upload,
[html]
< form action='...' ... >
...
...
The question is how to get this file uploaded What about the URL?
The following is a JavaScript code example
[javascript]
function showUploadUrl() {
for(var i=0; i var form = document.forms[ i]; Is: " + form.action);