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?