One click function

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    One click function

    HAI I WANT THIS TYPE OF FUNCTION ONE CLICK FUNCTION OPEN A NEW WINDOW BY CLICKING


    echo "<div class='tCenter'><b><a href='".$file."' onclick='window.open( "http://google.com" )'>(+)DOWNLOAD VIDEO FILE</a>
    </div>";


    IN THESE URL


    <center><?php include 'g'.$agent_ext; ?></center>
    <a class="new_dow_text" rel="follow" href="<?=BASE_PATH?>files/download/id/<?=$getfile['id']?>/<?=$getfile['name']?>.html">[Download File]</a>
    <!--<a class="new_dow_text" rel="follow" href="<?=BASE_PATH?><?=$FOLDER?><?=$getfile['dname']?>.<?=$getfile['ext']?>">[Download File]</a>-->
    <br />

    ANY EXPERT CODER HELP
    HUNT

    #2
    <a onclick="window.open('<?=BASE_PATH?>files/download/id/<?=$getfile['id']?>/<?=$getfile['name']?>.html')" class="new_dow_text" rel="follow">[Download File]</a>
    Last edited by something else; 03.07.16, 06:50.

    Comment


      #3
      Not working bro i wanna open a new url in new window wrriten above example google.com file download must start in same window but a new window with new url

      here is original url

      <a class="new_dow_text" rel="follow" href="<?=BASE_PATH?>files/download/id/<?=$getfile['id']?>/<?=$getfile['name']?>.html">[Download File]</a>

      HUNT

      Comment


        #4
        Using target="_blank" will instruct the browser to create a new browser tab or window when the user clicks on the link.

        Comment


          #5
          Write full Url Please
          HUNT

          Comment


            #6
            Something like this
            Code:
            <a href="http://yourlink.com" target="_blank">TEXT HERE</a>

            http://wapx.amob.com
            Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!

            Comment

            Working...
            X