[thelist] IE/Win, onclick, and encoded characters in the URL

noah noah at tookish.net
Fri Sep 10 09:21:25 CDT 2004

A free tip as a result of a half hour of frustration. If anyone has any 
further insight about exactly what's going on and why, I'd be interested.

<tip type="IE/Win, onclick, and encoded characters in the URL">

Internet Explorer interprets encoded characters in a URL passed to an 
onclick event using "this.href", causing the link not to work. For example:

<a href="http://www.omb.gov.on.ca/e%2Ddecisions/pl030623%5F%231361.pdf" 
  onclick="window.open(this.href); return false">

does not work in Internet Explorer 6 for Windows. However:

<a href="http://www.omb.gov.on.ca/e%2Ddecisions/pl030623%5F%231361.pdf" 
return false">

does work.

Both links work in Mozilla-based browsers.



More information about the thelist mailing list