I am developing a mini "ping pong" game with Javascript. The players will use the keyboard of their computers to control the game.
I would like to add an extra feature. I want the user be able to control the game from a smartphone. The user will open a mobile browser and type a url. This mobile page will track the gestures and then will invoke the Javascript function that moves the ping-pong racket.
So, the game runs on PC browser and users will control the racket from their mobile phones browser.
How can i invoke a javascript function that exist in page1.html, from page2.html