|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to create client side function in HTML with XS
Ilse,
Simply add the onClick attribute and specify the function: <a href="#" id="{ID}" onClick="myFunction();"><xsl:value-of select="ID"/></a> you can provide the function by including a js file or putting the code in a script element: <script type="text/javascript" language="javascript" src="myscript.js"> <script type="text/javascript"> <![CDATA[ function myFunction()
{
alert('this is my function');
}]]> </script> You might want set href="javascript:void(0)" instead of href="#" -rick At 11:25 AM 4/10/03 +0200, you wrote: I'm new on XSL...
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








