I know the javascript function? My problem is how to call the javascript function from the link, i have made in the code behind.

Had I to call the function from the click of a button, I would have used this code

bt.Attributes.Add("onclick", "return OpenWindow();")

Will it work in case of a link also?