The following link opens a video when clicked:
<a href="<?php echo $rows['image1'] ; ?> " rel="vidbox" title="<?php echo $rows['name']." <br>".nl2br($rows['detail']) ; ?>" id="m2"><?php echo $rows['name'] ; ?></a>
Can I run/execute this link using Javascript/PHP as if someone clicked on this link?
It is not possible to click on a link using javascript / jquery. You can trigger the bound events using
$('#m2').click()
but it will not open the url. What you could do is, use document.location.href to open the pageTry this if you are using jQuery.
Where
m2
is the ID of the link to be clicked.