Text link

Hello!

If I write a random word in mozilla (water) for example, how can I attach a hyperlink to it so that when one clicks it it opens a hyperlink like (in this case: http://en.wikipedia.org/wiki/Water) or any other link that I want. I tried this add-on https://addons.mozilla.org/en-US/firefox/addon/text-link/ but without success, I`m not sure if it is correct tool at all.

On 30/03/14 12:06, matrix wrote:
>
> Hello!
>
> If I write a random word in mozilla (water) for example, how can I
> attach a hyperlink to it so that when one clicks it it opens a hyperlink
> like (in this case: http://en.wikipedia.org/wiki/Water) or any other
> link that I want. I tried this add-on
> https://addons.mozilla.org/en-US/firefox/addon/text-link/ but without
> success, I`m not sure if it is correct tool at all.
>
>
Are you writing html code for a webpage? I’m not sure what you mean by
“write a random word in mozilla”.

Code

<a href=“http://en.wikipedia.org/wiki/Water”>water</a>

might do what you want.

Bob

On 03/30/2014 07:40 AM, Bob Williams pecked at the keyboard and wrote:
> On 30/03/14 12:06, matrix wrote:
>> Hello!
>>
>> If I write a random word in mozilla (water) for example, how can I
>> attach a hyperlink to it so that when one clicks it it opens a hyperlink
>> like (in this case: http://en.wikipedia.org/wiki/Water) or any other
>> link that I want. I tried this add-on
>> https://addons.mozilla.org/en-US/firefox/addon/text-link/ but without
>> success, I`m not sure if it is correct tool at all.
>>
>>
> Are you writing html code for a webpage? I’m not sure what you mean by
> “write a random word in mozilla”.
>
> Code
> -----
> <a href=“http://en.wikipedia.org/wiki/Water”>water</a>
> -----
>
> might do what you want.
>
> Bob
Just highlight the word, click on pulldown “Insert” then Link (or usr
CTRL+L) and fill out the needed info.

Ken

Just highlight the word, click on pulldown “Insert” then Link (or usr
CTRL+L) and fill out the needed info.

Ken[/QUOTE]

Do you mean by highlighting that I should paint the text in blue? If I have a text like water written somewhere and I paint it and then click with left mouse I see the options: Add to dictionary, undo, cut, copy, copy URI (no uri found), paste, delete, select all, open in new tab(no URI found), Check spelling, languages. There is no option for “Insert”.

Really confused on what you are trying to do?

I think all information is on my first note!

As said, I want to write a word (water was just an example) so that when one clicks it, it directs the clicker to a web page that one has determined.

Like I would now write water and when one clicks it, it opens a web page like https://www.wikipedia.org/ for example

Ok where do you plan to write this word?

Do you want a icon on the desktop to link to a site? If so and assuming KDE right click desktop select create new then link to location follow steps from there.

No, I want to write it to any **web page **like here or messenger, facebook etc.

On Sun, 30 Mar 2014 19:06:05 +0000, matrix wrote:

> gogalthorp;2633979 Wrote:
>> Ok where do you plan to write this word? Do you want a icon on the
>> desktop to link to a site? If so and assuming KDE right click desktop
>> select create new then link to location follow steps from there.
>
>
> No, I want to write it to any *web page *like here or messenger,
> facebook etc.

That will depend on what’s allowed and what’s in the user interface of
the website you’re using.

That’s not a function of Firefox/Chrome/whatever. It’s a function of the
website.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2014-03-30 21:06, matrix wrote:

> No, I want to write it to any *web page *like here or messenger,
> facebook etc.

Are you the administrator of those pages? How do you intend to write on
them?

You can not write on any random web page you find on internet. You can
only write on some pages that are specifically designed so that you can
write content: a forum, a wiki, the comment link on blogs… And then,
to add a link to that text you are allowed to write, you have to follow
the instructions of that site.

So, if you want to add a link to a forum post that you are writing in
this forum, you have to ask on the forum help place of this forum - not
in the Linux application forum.

Typically, if it is allowed, you see a little icon on the editor to add
a link.

If it is not allowed, forget it.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Let’s cover some basics…

As others have been quick to point out, usually you can’t just edit any webpage, particularly pages from public websites. Can you imagine the graffiti across the world’s websites if this was normally possible?

On the other hand, if you “own” the page (ie have editing rights) you can modify what you “own.” So, for instance, typically most web browsers including Mozilla have a “Save Page As…” or something similar so you can have a copy of the page on your own machine. That on your machine is something you “own” so you can do anything with it you wish, including modify (eg create your own link).

You should also know that the most commonly used code web pages use is HTML so that is what others have suggested to you. The following is an example you can follow which should create what you requested.

You can create your own web page.
Create a file with something like KWrite.
Open it and type the following into the file, which is the standard structure almost all HTML pages have if you look at the source:


<html>
  <head>
  </head>
  <body>
  <h1>My First Page</h1>
  </body>
</html>

Change the file name so it ends with a “.html” extension so it will automatically open in a web browser
Click on the file and see your page in the web browser.

Now, your question is how to create a hyperlink so clicking on “water” sends the User somewhere.
Open the file with Kwrite again (Rt-click and select Open With… Kwrite)

After the line
<h1>My First Page</h1>

Type the following
The ocean is full of <a href=“http://en.wikipedia.org/wiki/Water”>water</a>

Save, and re-open the file in your web browser. You should now see that clicking on “water” sends your web browser to Wikipedia.

HTH,
TSU

hello,

When you write a random word in mozilla is it in a text box, or are you thinking of maybe a wiki, like wikipedia, in which case you can just enter text and define it as a link (I think)…in the example below, I have cut and pasted some text from the editing tab in a wikipedia article about ‘Wormshill’. You can see for instance, if you look at the original page (http://en.wikipedia.org/wiki/Wormshill) that the following words are links; village and *Civil parishes in England|civil parish

*This is the beginning of the entry on wormshill in wikipedia linked to above… Wormshill is the first word in the entry, that is after the headings,and the first word below.

'''Wormshill''' ({{IPAc-en|w|ɜr|m|z|ˈ|h|ɪ|l}} {{respell|wurmz|HILL|'}}), historically '''Wormsell''', is a small [village]] and [Civil parishes in England|civil parish]] within the [Borough of Maidstone]], [Kent]], England. The parish is approximately {{convert|7|mi|0}} south of [The Swale]] and {{convert|8|mi|0}} east of [Maidstone]].

These words are surrounded by and ]] to define them as links, but they only work on wikipedia’s site specifically or other sites running media wiki in general, because there the server (I think) knows what they stand for. Otherwise with HTML you have to define links, as was previously mentioned…Although it sounds as though you are talking about a WYSIWYG editor, which I think is what is on wikipedia, or rather what one uses to edit wikipedia.

By the way, the addon you mentioned is designed to allow one to highlight and open a word on a page as though it were a link but that will only work if it is in the proper format, that is URI, so that the web browser knows where to go and how to do it. Which is kind of the other half of typing a link into any web page. https://addons.mozilla.org/en-US/firefox/addon/text-link/ . Also, in seamonkey and many browsers that I am aware of highlighting and right clicking will give you the option to search for the word in you default search provider/engine without any addon.

And finally the first thing that poped into my head when I read the question was Tomboy, in which you can put ‘post it’s’ on your desktop and add html links fairly easily, also they will link to one another.

have a good day,

a5’

On 03/30/2014 02:06 PM, matrix pecked at the keyboard and wrote:
> As said, I want to write a word (water was just an example) so that when
> one clicks it, it directs the clicker to a web page that one has
> determined.
>
> Like I would now write water and when one clicks it, it opens a web
> page like https://www.wikipedia.org/ for example
>
>

Like this? water <http://en.wikipedia.org/wiki/Water>

Ken

Mind, any of the above will only work if the application used to create the text is aware of html links. F.e. typing the entire html code for a link in Kate does not make it clickable in Kate.

On 03/31/2014 05:46 AM, Knurpht pecked at the keyboard and wrote:
> Mind, any of the above will only work if the application used to create
> the text is aware of html links. F.e. typing the entire html code for a
> link in Kate does not make it clickable in Kate.
>
>

Well, the OP only wrote “mozilla” and didn’t specify whether it was
thunderbird or firefox. I took the thunderbird route.

Ken