0

This is my url:

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

On page load remove #motto with Javascript.

Barmar
  • 741,623
  • 53
  • 500
  • 612

2 Answers2

1

try this: window.location.hash=""

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