I have an fb window that comes up and when a user clicks on a linkin it, it runs my asp.net page and then shows a thank you page when the db work is done.. on this thank you page i want to (after say 5 seconds) close the window automatically.. I have have included the .js and .css in the thank you window and also the etTimeout(function(){fb.end();}, 5000); and tried setTimeout(fb.end(), 5000);.. nothing seems to be working..no error is thrown and the window remains open...
Thanks
Steve
auto closing a window..
Page: 1
Author | Post |
---|---|
#1 Tue May 12, 2009 4:37 pm
|
|
Member
Registered: May 2009
Posts: 88
|
|
#2 Tue May 12, 2009 4:44 pm
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
Hi Steve,
The first syntax you quoted should be the correct one. Give setTimeout(function(){parent.fb.end();}, 5000); a try and see if that brings more joy. If it does not, is there an online url where I can take a look? |
#3 Tue May 12, 2009 4:55 pm
|
|
Member
Registered: May 2009
Posts: 88
|
THANKS!! that did it..spending too much time coding... could not see the forest b4 the trees..
again THANK!! Steve |
Page: 1