Need to develop function to load 2 windows with onclick from a link in 1st window

This is really simple but I can’t seem to figure it out.

I want to click on a defined link in the window that I am on by using the onclick trigger. I think I need a to call a function that will load window2 with html2, then load window3 with html3. by default, the html3 would become active. Is this possible and can anyone past on an example…

As a heads-up I’m an old-schooler who is using frames while they still are allowed to develop an internal tool. Sorry…

Well assuming that the web browser allows windows to popup as new windows (which javascript has no control over) it could be as simple as this:


document.querySelector('#clickme').onclick = function () {
    var window2 = window.open('http://www.google.com', 'window2'),
        window3 = window.open('http://www.microsoft.com', 'window3');
    window3.focus(); // for good measure
    return false;
};