Master Posted March 14, 2014 Report Share Posted March 14, 2014 I have deployed couple pages on the same web page but I want to call one of the pages in a function in java script. How can I specify which one of the buttons is that? Quote Link to comment Share on other sites More sharing options...
MayMusic Posted March 14, 2014 Report Share Posted March 14, 2014 For the DataPage you want to call the function for. In header: <div id="cb_wrapper"> In Footer: </div> Then you can call the function using the line below: document.getElementById('cb_wrapper').getElementsByTagName('form')[0].onsubmit=CALL FUNCTION AS NEEDED; (This will call first form inside the id=cb_wrapper. So no confusion which form from which DataPage.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.