Jump to content

control/update html file by url address from another page


naamabm

Recommended Posts

Hisuppose I have 2 html files open (in 2 different windows)Can I reach one file from the other using its url address?I need to reach its components (make something visible on page 2 when pressing a button on page 1)Thank you

Link to comment
Share on other sites

I don't think there is a way to do this with HTML. If there is a way it would probably be very complicated and probably involve ajax/php and either a database or an xml file. If you wanted to make it somewhere close to instant you could set up your second page to check a database or XML file every couple seconds using AJAX and the have your first page update your database or XML file when the user clicks on the button. It would be semi complicated but you could do it.Best of luck.

Link to comment
Share on other sites

If the first page opened the second (i.e. with JavaScript), and they are on the same domain, then you can interact with it directly. Otherwise you will need to go via the server, as migroo says.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...