Bootstrap modal open onClick or onLoad and it takes the user at the top of iFrame because due to .scrollTop() issue with Safari and IE

Bootstrap modal open onClick or onLoad and it takes the user at the top of iFrame because due to .scrollTop() issue with Safari and IE

You can see, the problem is in line 34. from Plunker - http://plnkr.co/edit/xjnCWE?p=preview, The .scrollTop(), When not given any value, should return current scroll position. When the parameter is passed into the function, it will scroll to given pixel on the element. And it does, in any other browser. In safari, it passes 0 for some reason… Therefore it’s scrolling up to the top…

I am not entirely sure how to solve this issue… Other than hack of course.

Works perfectly on Chrome & Firefox BUT not on Safari and IE Edge.