
Originally Posted by
Ashish_gupta
I want to navigate to and fro between these two pages on an click event of button but i am not able to do the same. Please help me as soon as possible.Thanks in advance.All the suggestions are welcome.
You can do it by providing a hyperlink on that button by using the <a> tag.
Code:
<a href="first.html">Your button goes here</a>
However, note that this is not the officially recommended approach. If your web app is to contain multiple scenes, views, or pages you shouldn't create separate HTML pages and load them. If you do so, you may encounter rendering issues with any pages other than index.html.
The correct approach is to place the HTML content for each view in its own container (such as a div) in the index.html file itself. Then to display a specific view the currently displaying view should be hidden and the required view shown using JavaScript code.