CodeNewbie Community 🌱

Discussion on: How do I change the URL without reloading the page?

Collapse
 
kleinemaulwurf profile image
Der @KleineMaulwurf

The HTML5 history API can do that.

history.pushState(null, null, 'subpage');

More details here: css-tricks.com/using-the-html5-his...