Keep focus on main page

1

I have a page being my main screen, when selecting a value and clicking the button it will call another page that I chose, it opens in the form of PopUp.

I need this PopUp to open without the focus on it, that the focus will continue on this main screen, because the system works with two screens and when I lose the focus of the main I need to be clicking back if I want to perform the operations.

I read about focus(); but I did not find anything that helped me with the page, I managed to do it in several ways, applying on inputs, buttons and links, but what I need is the focus on the whole page. >

I also noticed that there are problems related to my document having $(document).ready(function() {

I'm posting to see if I can get an idea how to do this process.

    
asked by anonymous 12.01.2018 / 20:21

2 answers

1

Good morning dear, thank those who participated in giving an idea or even presenting codes, programming was harder than I thought and none of the ideas worked. I looked in various forums and tried various types of programming. In response to my doubt, when testing by the Firefox browser I realized that it is working, because in firefox who is in the foreground is the main page and not the popUp.

This is probably browser configuration, so if someone knows how to change the chrome configuration so that popUp stays in the background, thank you.

In addition, the solution is in the browser, in my case it was solved with firefox.

    
16.01.2018 / 11:59
1

Just use the html5% attribute with%

<a href="https://www.w3schools.com" target="_blank">Sem mudar o foco</a><br>

<a href="https://www.w3schools.com" target="_blank">Mudar o foco</a>
    
12.01.2018 / 20:29