Code Injected

Asked

Viewed 23 times

2

I use Framework7 and use the code injected via Javascript. I need that when the user click on a certain button on the "Injected Page" go back to the main.

The history.go(-1) and the window.history.back(); do not work because the pages are not in the history.

1 answer

1


F7 itself has this function:

app.router.back(); //Volta para a página anterior.

or

app.router.navigate('/'); //Volta para o index, configurado nas rotas.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.