I am trying to embed media using object tag but I found on searching it got deprecated so I went to use Iframe but I want to display an alert message if the src attribute contains invalid url. media I want to embed contains video/image/pdf/html file
I tried something like below . please help thanks in advance
I am trying to embed media using object tag but I found on searching it got deprecated so I went to use Iframe but I want to display an alert message if the src attribute contains invalid url. media I want to embed contains video/image/pdf/html file
I tried something like below . please help thanks in advance