I have a kind of single page application, and in one scenario I need to open my app in a second tab, and the second tab must be open with a specific partial view.
I have this function to open the app in a new tab:
function OpenInNewTab(id) {
var win = window.open("Index","_blank");
win.focus();
//MainMenuClick("CandidateInfo", id) <-- this function I want to call on the new Tab, after loading.
}
OpenInNewTab
is opening my app in a new tab on the "Home/Index" page, which is ok (half of the task);
Now I want to call MainMenuClick
in order to open a specific partial view, inside Index page (in the new tab).
I do not know how to call a function in the new open tab!
Is it possible to tell to the browser to call "MainMenuClick
" function in the new tab?