?
Solved

How to avoid HTML to URLEncode a URL in HREF attribute

Posted on 2002-06-10
4
Medium Priority
?
249 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 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Suggested Courses

765 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