Link to home
Start Free TrialLog in
Avatar of phparmy
phparmy

asked on

Javascript how to be sure function executed successfully

My operation takes long time to finish.

<html>
<head>

function doOperation(){

     //do somethin if something executed successfully then close window. but be sure .


}
</head>
<body>
<a href="#" onclick="doOperation();">Do Operation Then Close Window</a>
</body>
</html>

How can i be sure is my operation finished.

Thanks. Please Help.
Avatar of HonorGod
HonorGod
Flag of United States of America image

It depends upon the operation.  There are so many possibilities.

What kind of operation is it?
ASKER CERTIFIED SOLUTION
Avatar of Barry62
Barry62
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you give an example of something you want to do?