Hi, I need to call a Javascript function from an a
element.. something like this:
href='javascript:myjavascriptfunction();'
. I need the Javascript function to get the values from a couple of datepicker controls, build and urlencode a querystring and return it so that it opens into a new window. So far I think I have everything, but I'm struggling with building the URL and returning it correctly. This is my a
element so far.
<a href='javascript:myjavascriptfunction();' id="myhyperlink" target="_blank">
In my Javascript function I am building the string and returning it like this:
return queryString;
Result: click the link and a new window opens with the URL of my parent window with the function call name appended to it?