Welcome visitor
* Login
* Register
It is currently September 18th, 2019, 12:30 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Create a link with a user entry
PostPosted: November 19th, 2009, 12:14 am 

Posts: 12
Hi, Im learning HTML, and I think this is a great site to start...

My question today is about links. I know that using
<a>this will create a link</a>

but could I let the user write a word and then when he clicks it will work as a link. So he creates the link, so to speak. Is this possible?


Top
 Profile  
 
  Re: Create a link with a user entry
PostPosted: November 19th, 2009, 2:43 am 
User avatar

Posts: 136
yes, its possible. The only thing is that you will need to know what the user entered, and wether he wants to go to a different site or just go to a subfolder on yours.

Lets say you have a folder named "google" and the user wants to go to that folder.
If he types "google"
how can you tell he wants to go to your "google" folder?
or maybe other user wants to go to "http://www.google.com"
but other types "google" expecting to go to "http://www.google.co.uk"
see what I mean?

but on this link u'll find how to add just the 'http://' to the word the user typed
(then, the user needs to type the www.nameofthesite.any com or net, etc.).
i hope this helps and you can figure out the rest :P:
http://www.scriptingok.com/forum/viewtopic.php?f=5&t=388


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron