-
Notifications
You must be signed in to change notification settings - Fork 27
Gustavo Rodrigues edited this page Jun 2, 2015
·
3 revisions
reload(cb)
Reload the tab:
tab.reload(function(err) {
console.log("reloading the tab");
});
navigateTo(url, cb)
Navigate tab to a new page:
tab.navigateTo("http://github.com", function(err) {
console.log("navigating to a new url");
});
attach(cb)
Call to start receiving tab events.
detach(cb)
Call to stop receiving tab events.
Fired when the page navigates. Note: must call attach()
to receive these events.
tab.on("navigate", function(event) {
console.log("navigated to:", event.url + event.title);
});
Fired when the page is about to navigate. Note: must call attach()
to receive these events.
tab.on("before-navigate", function(event) {
console.log("navigating to:", event.url);
});