Answer the question
In order to leave comments, you need to log in
How to return focus to the parent window - window.open?
There is a simple window.open function:
function preview() {
var newWin = window.open('/preview.html', 'example', 'width=600,height=400');
//onfocus/onblur
}
preview();
Answer the question
In order to leave comments, you need to log in
onfocus/onblur are events for subscribing to get/lose focus. The method itself is window.focus();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question