Solved

How to avoid HTML to URLEncode a URL in HREF attribute

Posted on 2002-06-10
4
231 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
  • 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now