If you don't want to post back the page, change
onClick
event to
OnClientClick
.
EDIT ON:
I am sorry, I didn't realize it's an input element and not <asp:Button.
Here is the correct answer:
You have 2 options:
1) Use input type="button". But only if you don't want to post back the page.
2) Put
return false;
inside the initialize function. And change return false to return true;
So the line will be like:
<input type="submit" onclick = "initialize(); return true;" value="Go!" />
The last line in the initialize function will return false.
NOTE: I have assumed you don't want to post back the page and initializing the control using Javascript.
EDIT OFF