I have several html sub files that should be loaded one by one by a main file with and the main file should have access to all JavaScript functions and variables in the sub files.
For example: The file Sub1.html should be loaded by the main.html file. A JavaScript function from file Sub1.html executes and reads the result of a variable by main.html. Then delete the entire loaded sub1.html part with functions and variables. Then repeat this for Sub2.html, Sub3.html, ...
How can I do this?
Unfortunately, I am a beginner in this field and could not experience any idea.
Via Active questions tagged javascript - Stack Overflow https://ift.tt/TqGlSmP
Comments
Post a Comment