Solved

How to avoid HTML to URLEncode a URL in HREF attribute

Posted on 2002-06-10
4
246 Views
Last Modified: 2010-04-09
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
0
Comment
Question by:skel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 33

Accepted Solution

by:
knightEknight earned 50 total points
ID: 7068501
<A href="#" onClick='location="ó";return false;'>click</a>
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7068503
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
 
LVL 33

Expert Comment

by:knightEknight
ID: 7068507
ofcourse, in this example, the onclick will fail if there is no page called "ó"
0
 

Author Comment

by:skel
ID: 7068533
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question