Avatar of xenium
xenium
 asked on

Displaying a simple HTML page from input embedded into a URL (part II)

hi,

I'd like to adapt the following great little script to allow links to be shown with a display text instead of the URL:

https://www.experts-exchange.com/questions/29086043/Displaying-a-simple-HTML-page-from-input-embedded-into-a-URL.html


ie instead of showing

https://www.google.co.uk/search?q=apples

to show

apples

Note the URL could be anything, as per adjustment in this comment: https://www.experts-exchange.com/questions/29086043/Displaying-a-simple-HTML-page-from-input-embedded-into-a-URL.html?anchorAnswerId=42481743#a42481743

Thanks
HTMLJavaScript

Avatar of undefined
Last Comment
xenium

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Julian Hansen

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
xenium

ASKER
Thanks a lot, that works well where the display text is the search term as in my first example.

I will post a follow-up question where the display text is provided in the URL.

Thanks
xenium

ASKER
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23