I want to change a URL without refreshing the page. My initial URL is
data:text/html,http://arget.com
I want change this to
http://arget.com
I want remove data:text/html,
in the URL without refreshing the page
I want to change a URL without refreshing the page. My initial URL is
data:text/html,http://arget.com
I want change this to
http://arget.com
I want remove data:text/html,
in the URL without refreshing the page
You can't. The history API allows you to modify parts of the URL displayed in the address bar, but it won't let you touch the origin (i.e. since the content came from the URL and not from arget.com's servers, there is no way to make the browser claim it came from arget.com's servers). That would make things very easy for phishing attackers.