Hi,
I have the following link in my page:
<a href="javascript:void(0);" onclick="MyFunction();">
Basically, I want the link to execute my javascript function and nothing else. It does this, but then it lauches a new window with 'javascript:void(0);' in the address bar. I thought adding the void(0) to the href tells it to do nothing. I have this same call on a different page and it works fine. But for some reason on this one page it is opening a new window. Any ideas?
I have the following link in my page:
<a href="javascript:void(0);" onclick="MyFunction();">
Basically, I want the link to execute my javascript function and nothing else. It does this, but then it lauches a new window with 'javascript:void(0);' in the address bar. I thought adding the void(0) to the href tells it to do nothing. I have this same call on a different page and it works fine. But for some reason on this one page it is opening a new window. Any ideas?