Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
119
rated 0 times [  120] [ 1]  / answers: 1 / hits: 17301  / 10 Years ago, wed, november 12, 2014, 12:00:00

I am trying to write a JavaScript function that will work on Firefox 5.0. I need the page to fully load, and then close. What I'm trying to do is:



var temp = window.open(link);

temp.window.onload = function () {
temp.window.close();
}


But so far all it does is open the new tab, but doesn't close it.



Is there any way to successfully accomplish this?


More From » firefox

 Answers
10

You could maybe create new js file for that window and have just window.close(); inside.


[#68831] Sunday, November 9, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stephonkeandrer

Total Points: 392
Total Questions: 94
Total Answers: 100

Location: Tajikistan
Member since Sun, Aug 29, 2021
3 Years ago
;