How to avoid HTML to URLEncode a URL in HREF attribute

Hi all...

If I write <A HREF="ó"></A>, the browser interprets it as
<A HREF="%C3%B3"></A>.. that only happens with HREF attribute. How can I avoid this?

Thanks in advance
Jaime
skelAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
knightEknightConnect With a Mentor Commented:
<A href="#" onClick='location="ó";return false;'>click</a>
0
 
knightEknightCommented:
it doesn't matter what you put in the href as long as you return false in the onclick, so you could put something more friendly:

<A href="Click Me!" onClick='location="ó";return false;'>click</a>
0
 
knightEknightCommented:
ofcourse, in this example, the onclick will fail if there is no page called "ó"
0
 
skelAuthor Commented:
hmm.. thanks.. but maybe I needed to give you the right example of my situation....

I needed
<A HREF="JavaScript:process('ó');">

but with no wanting, you helped me... I used onClick event and it worked

Jaime
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.