我有这个用户控制:
function Test1($)
{
this.Width;
this.Height;
this.show = function()
{
///UserCodeRegionStart:[show] (do not remove this comment.)
var buffer = "..." +
"<button onclick=\"alertfuncfora()\"> click </button>" +
"...";
this.setHtml(buffer);
...
///UserCodeRegionEnd: (do not remove this comment.)
}
///UserCodeRegionStart:[User Functions] (do not remove this comment.)
///UserCodeRegionEnd: (do not remove this comment.):
}
...
function alertfuncfora(){
alert("ola ola");
}
但是每次单击按钮时,我关闭弹出窗口后都会刷新页面。我不想每次单击按钮时都刷新页面。我该怎么做呢?