-3

I am working in a application in which there is a anchor tag with href value = id value of another anchor link. When I click on the anchor tag in Internet explorer its working fine for me but in case of google chrome link is not working. What can be the issue, why working in one browser but not in other

1. <ul><li><a href="#Abu Dhabi">Abu Dhabi</a><li> <ul>

2. <a name="#Abu Dhabi" id="&quot;Abu Dhabi&quot;">
<name>Abu Dhabi<br></name></a>
<name>Abu Dhabi<br></name>
Sadegh
  • 865
  • 1
  • 23
  • 47
funsukvangdu
  • 1,621
  • 4
  • 20
  • 33

1 Answers1

1

Hash fragments cannot contain spaces; yours does. This is covered by RFC2396 in §2.4.3 and §4.

T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875