Open a new window in JavaScript on button click and Focus on Top

preview_player
Показать описание
In this video tutorial, you will be able to open a new window in JavaScript on button click and focus on top of other tab.

Steps:
Create a button and add onclick on that button.
create same function in javascript
inside this function,
then write

in function popup
check if window is closed or not
if not closed then keep focus on that window

Code:
button class="btn btn-danger" onclick="openPopup()" Popup /button

script
var newWin;
function openPopup()
{

}
function focusPopup(){
}
}

#javascript #knowledgethrusters
Рекомендации по теме
visit shbcf.ru