We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Is there way that I can connect between two js files in different html files? Is there a way that I can take information from 1 js file from other file?
for example: I have 2 html files and js files to each of them. can I take from one file information (like value of variable) and use in this information in the other file?
Answers
https://forum.Processing.org/two/discussions/tagged/iframe
https://developer.Mozilla.org/en-US/docs/Web/HTML/Element/iframe
https://developer.Mozilla.org/en-US/docs/Web/API/HTMLIFrameElement
@GoToLoop: why suggest an iframe :/
@Raz: you need to clarify what you're trying to achieve. JS files are completely separate from HTML files, so the same JS file can be loaded into as many HTML files as necessary... If you need to share the same data across different JS scripts then a good approach is to put that into a separate JSON file... Or if you have some standard data but need configuration options you can use can data- attributes in your HTML...