Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am new at developing . I am trying to create a back button option in my app.
i mean "when the user click the button then press the back button".
like this app -
https://play.google.com/store/apps/details?id=nu.back.button&hl=en_IN[^]

Please help me to create this Program.

What I have tried:

i am working from 7-8 days on it but i am unable to do.
Posted
Updated 26-Aug-20 9:50am
Comments
CHill60 26-Aug-20 4:02am    
If you have been working for a week on it then share the code you have tried and explain what happens when you run it
sanjogitai39 26-Aug-20 4:10am    
sorry, but i don't know how to make it.
i only do google searches
Richard MacCutchan 26-Aug-20 5:10am    
A back button is not anything special. All buttons are the same, they only do what your code tells them to do. So whatever you want this button to do you need to write the code for it.

And since you have tagged this Javascript, Java, Python and HTML, but given no details, it is impossible for us to guess what you are trying to do. Please use the Improve question link above and provide some proper details of your problem.
David Crow 26-Aug-20 9:32am    
See here, especially #4.

1 solution

You need to use javaScript "DOM" facilities.

There are multiple ways to go to the previous page.

You need to look here: (to learn javaScript [^] and DOM[^]).

As a special treat, this[^] gets you to a place that describes one possible route.

You still need to do the work
 
Share this answer
 
Comments
David Crow 27-Aug-20 15:29pm    
"You need to use javaScript "DOM" facilities."

Wouldn't that be for just going backward in a web page?
W Balboos, GHB 28-Aug-20 7:12am    
No - it would be going back (or forward) through the tab's history. Assuming, of course, you don't modify the history, first.

DOM can control the content of a page and also send you to new ones - I guess it may be whether or not you consider location, history, &etc part of DOM of javaScript.
David Crow 28-Aug-20 8:20am    
"it would be going back (or forward) through the tab's history."

Which is part of a browser, correct? I don't see where the OP is trying to display web pages (in a browser). The Back button he refers to is an entirely different animal.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900