0
Could JavaScript load data from another page / file?
How to JavaScript load data from another page?
1 Answer
+ 2
Yes, it can load an external file, but preferably with a server. Loading data from another page might violate some security issues, I think...
To load files from a server, make use of the XMLHttpRequest function. Compatibility is another issue with IE and older browsers. Read on XMLHttpRequest, Microsoft's ActiveXObject and XDomainRequest. Generally, read on AJAX.