WhiteHatBox
Official Twitter Account
Get Support
Create Support Ticket
Share Page
Following(0)
Partner List
calliasshamil2

How Do I Make My Bot Go To The Previous Page? (Back Command / Back Navigation ..etc..)

ReplyThanks 2018/10/29 02:50:32 0 0

Obviously in a browser you can go "back" and "forward".

So lets say i made my bot do the following:


1. go to google

2. go to yahoo

3. go back to google (obviously not by just jumping to that url i mean actually going back like a back navigation on a browser.)


Thank you!



Aprilcaicai
2018/10/29 10:45:36

Sorry, here is no such a command in BotChief, but you should able to realize it using RunJavaScriptCode command.


Let us know if you need more help in the future.

calliasshamil2
2018/10/29 20:36:44
how do i do the RunJavaScriptCode back command then?
2 # Aprilcaicai 2018/10/29 10:45:36

Sorry, here is no such a command in BotChief, but you should able to realize it using RunJavaScriptCode command.


Let us know if you need more help in the future.

calliasshamil2
2018/10/29 21:09:31
2 # Aprilcaicai 2018/10/29 10:45:36

Sorry, here is no such a command in BotChief, but you should able to realize it using RunJavaScriptCode command.


Let us know if you need more help in the future.

Nevermind! Found Answer! Thank you so much man <3


I used "Run JavaScript Code"

and added the code:


function Back()
{
window.history.go(-1);
}

and it worked! thank you so much :)

Aprilcaicai
2018/10/30 17:04:26

Ok, thanks for letting us know.


Please feel free to contact us if you need more help in the future.

Karmagedon
2018/11/03 00:14:02
1 # calliasshamil2 2018/10/29 2:50:32

Obviously in a browser you can go "back" and "forward".

So lets say i made my bot do the following:


1. go to google

2. go to yahoo

3. go back to google (obviously not by just jumping to that url i mean actually going back like a back navigation on a browser.)


Thank you!


Hello. The action Run JavaScript Code is available only from version BotChief Editor Elite. Perhaps my solution to the problem may be useful to you.

You can use this algorithm to go to any necessary pages (including to go forward).

If you want to support me for help, you can buy me a coffee - https://ko-fi.com/bots4you
<< < 1> >>
VerifyCode
Advanced Option