Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: How to activate a java-script via a href link


Message #1 by cw.inf@c... on Thu, 9 Aug 2001 14:49:59
 just use this code... i think u need to make a function() on a script and call it from href...
<a href="javascript:ToOpen()">Click here</a>
<script>
function ToOpen()
{
window.open('popup_ratewebsite_text.asp','mywindow','width=300,height=200,left=200,top=200,screenX=100,screenY=100')
}
</script>

Best Regard
  Arjan Bosboom <Arjan.Bosboom@d...> wrote: link

-----Original Message-----
From: cw.inf@c... [mailto:cw.inf@c...]
Sent: donderdag 9 augustus 2001 16:50
To: JavaScript HowTo
Subject: [javascript_howto] How to activate a java-script via a href
link


I would like to activate the following code from a text (href) link - but 
how to. The following code has been taken from a "Button". I just dont 
know how to use it with a text link?

Any help?

onClick="window.open 
('popup_ratewebsite_text.asp','mywindow','width=300,height=200,left=200,top
=200,screenX=100,screenY=100')"

Regards, 

Chrilles


997433927=:94379--

  Return to Index