By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,631 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,631 IT Pros & Developers. It's quick & easy.

Link starts with <br />

P: n/a
Hi all,

If you are using IE, Netscape, Mozilla or, I would guess, several
other browsers, and if you put the cursor over a link (without
clicking) you can see the address of the new web page at the bottom
of the browser window.

Consider now this HTML file:

<html>
<head>
<title>Link</title>
</head>
<body>
a<a href="<br />http://www.abc.com">b</a>c
</body>

The link has a stupid error: it starts with <br />. Now, suppose that
I put this HTML file at the web and that its URL is, say,
http://www.I_love_spam.com. My question is: why is it that if I use one
of the above mentioned browsers to read this file and if I put the
cursor over the link, instead of simply seing "<br />http://www.abc.com"
what I get is "http://www.I_love_spam.com/<br />http://www.abc.com"?

Best regards,

Jose Carlos Santos
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Josť Carlos Santos:
<a href="<br />http://www.abc.com">b</a> My question is: why is it that if I use one
of the above mentioned browsers to read this file and if I put the
cursor over the link, instead of simply seing "<br />http://www.abc.com"
what I get is "http://www.I_love_spam.com/<br />http://www.abc.com"?


If the link adress would be e.g. "SOMENONSENSE" and the URL of the page
would be "http://somewhere", then you would see
"http://somewhere/SOMENONSENSE". Same thing.

The "http://" part is not treated as a normal "http://" since the adress
doesn't start with "http://". It starts with "<br />".

--
Bertilo Wennergren <be******@gmx.net> <http://www.bertilow.com>
Jul 20 '05 #2

P: n/a
Bertilo Wennergren wrote:
My question is: why is it that if I use one
of the above mentioned browsers to read this file and if I put the
cursor over the link, instead of simply seing "<br />http://www.abc.com"
what I get is "http://www.I_love_spam.com/<br />http://www.abc.com"?


If the link adress would be e.g. "SOMENONSENSE" and the URL of the page
would be "http://somewhere", then you would see
"http://somewhere/SOMENONSENSE". Same thing.

The "http://" part is not treated as a normal "http://" since the adress
doesn't start with "http://". It starts with "<br />".


Sure. Sorry for my stupid question.

Best regards,

Jose Carlos Santos
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.