I have a dashboard page.. and a loadfile()
function in its dashboard.js
file.
I have an iframe in the dashboard which is addsite.html
with addsite.js
file..
I need to call loadfile()
from addsite.js
..
I have a dashboard page.. and a loadfile()
function in its dashboard.js
file.
I have an iframe in the dashboard which is addsite.html
with addsite.js
file..
I need to call loadfile()
from addsite.js
..
Import dashboard.js
in addsite.html
, and then call it's loadfile()
method.
For example:
<script src="dashboard.js"></script>
<script src="addsite.js"></script>
<!-- ... more markup ... -->
Now, in addsite.js
, you can access dashboard.js
' functions.