Ajax: use anchor tag for parsing urls