0

This is my url:

http://example.com/index.php#motto

On page load remove #motto with Javascript.

Barmar
  • 669,327
  • 51
  • 454
  • 560

2 Answers2

1

try this: window.location.hash=""

Alex Doe
  • 944
  • 6
  • 12
-1
$.fn.urlHash = function()
{
  return window.location.hash.replace('#','');
};
$.urlHash();
vmontanheiro
  • 989
  • 7
  • 12