views:

142

answers:

0

i want to set the href for an anchor. Anchor element is present in a frame.

This url is of the form a.xml#section_a. Clicking on this <a> will take me to section_a of a.xml rendered using xsl.

name of file is determined dynamically from a parameter available in the browser url. I can get this parameter using a javascript function.

I want to know, how can i call this javascript function on click of <a> and how to concat the returned value with some fixed string in my xsl.

Taking the above example, js function will return me 'a' which i need to concat with '.xml#section_a' and set the href of <a>.