One click function

Started on the old forum in July 2016 · view the original in the archive · old links redirect here

5 replies · 220 views · started 10 years ago · 1 min read

4 participants
ethanhunt Developer · 143 posts #1

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

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

IN THESE URL

<?php include 'g'.$agent_ext; ?>

/<?=$getfile['name']?>.html">[Download File]

<!--[.<?=$getfile['ext']?>">[Download File]](#)-->

ANY EXPERT CODER HELP

HUNT

something else Fellow · 2,296 posts #2

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

razor Developer · 52 posts #4

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

ethanhunt Developer · 143 posts #5

Write full Url Please

HUNT

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close