I am opening a file on the new tab using window.open('filepath'). i want to reload the new url once it is opened.how can i achieve this? I tried the below code but the new url is not reloading once it is opened.
var newurl = window.open('filepath','_blank');
window.location.reload();
or
window.location.reload(newurl);
edited: Actually i am opening the content of the xml file on new url. when the file is opened on new tab it contains the previous data not the updated content. it is showing the updated content only upon reloading. The updated content will be shown on my local even if i do not reload the page but in some other site.It is not working without reloading.