...
function openaddcat(url){
var catnum=11;
if(catnum<100)
{
g_pop=new Popup({ contentType:1, isReloadOnClose:false, width:410, height:150 });
g_pop.setContent("title","添加新分类");
g_pop.setContent("contentUrl",url);
g_pop.build();
g_pop.show();
}
else
{
showErr3("分类数目最多为100个");
}
return false;
}...
调用:
<a href="add.php" target="blank" onclick="openaddcat('add.php');return false;">增加新分类</a>add.php 里有一个“取消”如何点“取消”关闭呢?