I want to put a link with the <a>
tag on my website page, but with multiple URLs in case the 1st one doesn't work. I would be something like this:
<a href="url1;url2;url3"
But of course this doesn't work. So is there a way to do this ?
Thank you
The closest you could come would be to:
href
data
attribute)click
event handler that runs some JavaScript which prevents the default behaviour and then tests each URL in turn until it finds one that works (or runs out).Testing would require Ajax which would require either:
The additional HTTP requests would consume bandwidth (and thus time).