What language can be used to check a string or a link then write html accordingly? This is while a user loads the page. I need this so I can check the link if it .mp4 or .flv before I load the video player. If it has the included video format then it will load the code for the player if not it will display a message instead.
Share
What is normally done in pure HTML is something like this:
The error message is always there, but if the video actually loads then it is covered up.