Consider an HTML page named page1.html with the following simple structure:
<html>
<title>Page1</title>
<body>
<h1>Hello</h1>
</body>
</html>
Is it possible to change<h1> text on page1.html with JavaScript from page2.html?
If it’s possible, how can one achieve this?
page2.htmlthen theh1onpage1.htmlwill be set to the new value for all that load the page after that point), or does it need to be dynamic and only to the person that currently has the page open (i.e. like Facebook chat, where you send a message to one user, and it appears on the other user's screen)?