Answer the question
In order to leave comments, you need to log in
How to get data from address bar in app on phonegap?
Hello!
There is a cross browser app on phonegap. On the front, all work is done with html + js.
There is a task: to select that page in the menu on which there is a user.
As I see it: take a piece from the url, and make a check, which adds a class.
Here's what happened:
let URL = window.location.pathname;
if(URL == '/index.html'){
$(".go_to_index").addClass('active-item');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question