How to pass a Javascript variable from one protocol to another protocol when click 'Submit' button?

Pass Javascript variable to the global property of another protocol