Question: how could I do the goBack() function? I/ It should also push the previous page to the history // returns nothing void goToPage(string inUr1) {
I/ It should also push the previous page to the history // returns nothing void goToPage(string inUr1) \{ currentury.push(currentUrl); \} I/ Implement goBack method to go to the previous page in history /I If there is no previous page to move to, /I print a message and do nothing void goBack() \{ if (history)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
