Is that possible to execute a function just after reload...?
<p>I have a set of code</p>

<pre><code>setTimeout(function() {
   window.location.reload(true);
   if ($scope.attribute.parentAttribute.id) {
       angular.element(document.getElementById($scope.attribute.parentAttribute.id)).click();
   }
}, 1000);
</code></pre>

<p>I am using a timeout, I need to execute that click function after <code>window.location.reload(true);</code> reload cause by this line. Is it possible?</p>