Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (window.History && window.History.enabled) {
- var vars = {};
- var tables = {};
- vars['something'] = 'value';
- History.replaceState({vars: vars, tables: tables}, null, window.location.href.match(/^([^#]*)/)[1]);
- }
- var state = History.getState();
- var data = state.data;
- if (data.vars) {
- alert('success!');
- }
Add Comment
Please, Sign In to add comment