Adding a js file

I am adding an html form to an existing site. I have a large js file that is associated with that form. I can’t find how to upload a file to the server. I tried to just create a blank page that I could paste the
js into but doing that creates a menu item for the page so that won’t work. Can somebody please
advise me how to proceed with this? Also, if this is possible, then when I add the tag to link to it
will it be in the same dir or do I need to add something to the src

Thanks,

David

sorry, I read through some of the related posts and see that using js to access the DOM is forbidden. Since my scripts use the document object I guess it won’t work even if there is a way to upload the files.

You are correct, HTML and Javascript can’t be embedded in a Velo page. You might want to consider using an HtmlComponent . For more information, see the article Working with the HTML Component in Velo .

Another option is to use a Custom Element which is a reusable web component element that you define in a JavaScript file that is either hosted by Wix or hosted on a server that is external to Wix. The custom element is defined using the standard ECMAScript 2015 class syntax. See this simple Link example to get started.