You could drop a link into a text box, click submit, that goes to the server as a get request.
The server then get requests the link to the site to grab the title (which then proves it's a valid link) if it's not a valid link - errors all round.
if it is a valid link, the server then updates the list element with the title, hotlinked, creates a new empty link box underneath it - then refreshes the page
You could drop a link into a text box, click submit, that goes to the server as a get request.
The server then get requests the link to the site to grab the title (which then proves it's a valid link) if it's not a valid link - errors all round.
if it is a valid link, the server then updates the list element with the title, hotlinked, creates a new empty link box underneath it - then refreshes the page
https://stackoverflow.com/questions/64051968/retrieving-title-of-a-page-with-url-in-nodejs There's always a stack overflow :)