0

Add element from one page to different page

How can I create an element with one html/js project but then add it to a completely separate project html document? Html/js (Project1) | | Create element with Project1.js | | Add element to project2.html with Project1.js | | Html (Project2)

13th Apr 2019, 5:44 PM
Aaron
1 Antwort
0
You should take that JavaScript is a client-sided programming language into your mind, when making things such as this. You could load the script into your site using <script src="file.js"></script> and use some ES6 to export contents of the JS files and make use of it easily.
13th Apr 2019, 10:02 PM
Ragey
Ragey - avatar