I am looking to achieve something like Wordpress when you create a new message. This allows you to view your post by opening a new tab. If after that you edit the message and view it again, instead of opening another tab, it will update the previously opened tab (provided that it is still open).
From some studies, it seems that I can open a new window and give it a name to identify it, for example:
window.open(url,"foobar");
But how can I update this tab later? location.reload()
does not seem to accept the name as an argument.
source share