How to Reload iframe using javascript and supporting on almost browser

Iframes are very common and old technique to display content of any website directly. it’s globally accepted and user all over the world web.i was working in one of my client project, in that i m making an Ajax call and in there i was trying to refresh Iframe and its works only some browser like some code is worked on Firefox and some not worked on Internet explorer and i tried many times to find code from Google and after that i planned to create my own way to create that type of script using JavaScript that worked on almost browser so lets i show you what i did at that time to worked in some of the popular browser and also show you which one is not worked on which browser.. lets start

Below JavaScript line of code is worked on Firefox, Internet Explorer, Safari and Google Crome

Below code not worked in some of the browser