Results 1 to 2 of 2

Thread: execute a link

  1. #1
    Join Date
    Jan 2005
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default execute a link

    following link opens up a videobox and plays a video

    <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 execute this link using javascript

    This link can be formed from of the video record id
    and i want to use javascript to execute the link

    this will help me to hide the video file name.

    Please help

  2. #2
    Join Date
    Apr 2012
    Location
    Chester, Cheshire
    Posts
    329
    Thanks
    7
    Thanked 35 Times in 35 Posts

    Default

    The easiest way is to us:

    PHP Code:
    window.location.href document.getElementById('m2').href

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •