javascript copy link

They have: 461 posts

Joined: Jul 2003

trying to make a link that will copy. not sure what's wrong. example link: http://24.91.157.113/findyourdesire/profile.php?un=neo
under the pictures, the link to this profile link.
here's the code for those that don't care to look (as sent to the browser from the php/both codes adjusted to remove horizontal scrolling):
link:

    <li>Link Directly to this profile: <a name="#Neo" href="#Neo"
onClick="toClipboard();"><a href="http://www.FindYourDesire/findyourdesire/profile.php?un=Neo" class="bb-url">http://www.FindYourDesire/findyourdesire/profile.php?un=Neo</a>
</a></li>
'
javascript:
      &lt;script language="javascript"&gt;
function toClipboard(){
  var text="http://www.FindYourDesire/findyourdesire/profile.php?un=Neo";
  var copyText=text.createTextRange();
 
  return confirm("Do you want to copy the link
<a href="http://www.FindYourDesire/findyourdesire/profile.php?un=Neo" class="bb-url">http://www.FindYourDesire/findyourdesire/profile.php?un=Neo</a> to your clipboard?
(this only works for M$IE");
  copyText.execCommand("Copy");
  alert("If using M$IE, then you have just copied the link,
<a href="http://www.FindYourDesire/findyourdesire/profile.php?un=Neo" class="bb-url">http://www.FindYourDesire/findyourdesire/profile.php?un=Neo</a> to your clipboard.");
}
      &lt;/script&gt;
'

thanx in advance for any help, as you can see i do understand it will only work in ie once i get it working. testing in both M$IE and mozilla 1.3.1. i just want the confirm to come up in non-M$IE browsers
fyi: at this point the links wont work. while i have the url, i don't have a host yet.

POSIX. because a stable os that doesn't have memory leaks and isn't buggy is always good.