php - copy text from link to clipboard when clicked -


i returning values database search hyperlinked redirect search.php. change code instead of redirecting search.php, text of link copied clipboard when user clicks mouse , user remain on same page. easy solution appreciated. here code using.

while($row = mysql_fetch_assoc($find_parts)) { $name = $row['name'];  $id = $row['id'];  echo "<a href='search.php?id=$id'>$name</a><br />"; } 

basically want name copied clipboard when link clicked

i'd add comment unfortunately don't have quite enough rep yet. i'd recommend zeroclipboard. uses mix of flash , javascript , should able need.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -