๐Ÿ”ฅ Ultimate Challenge [advanced coders]๐Ÿ”ฅ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 13

๐Ÿ”ฅ Ultimate Challenge [advanced coders]๐Ÿ”ฅ

Write a "WEB" code which automatically detects which input is a link and opens in users browser upon clicking on the link eg: Sololearn automatically detects www.a.com to be a link but it leaves others like ww.a.com and texts as ordinary. hint: you can use any tag of your choice like <textarea>, <div>, <input> etc.

31st Jul 2017, 9:12 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
1 Answer
+ 7
You tried very well but the link does not work without "http://" eg: http://www.a.com is a link and www.a.com is also a link, but the later doesn't work on your code. your link doesn't work if other texts precedes it and if it is the first line of text, all others becomes it. ...thanks a lot for your great trial, looking forward to seeing the modified version of your code๐Ÿ‘๐Ÿ‘๐Ÿ‘
31st Jul 2017, 1:12 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar