CSDN博客

img gzzzz

确认窗口的写法

发表于2004/10/3 23:36:00  876人阅读

分类: 网页编程

function change_name(p)
{
 var new_name = prompt ("更改相册名字为","");
 if (new_name)
 {
  //submit;
  document.name_form.new_name.value = new_name ;
  document.name_form.pid.value = p;
  //window.open("null.html","name","height = 200,width=300");
  document.name_form.submit();
 }
}
function del_album(p)
{
 var new_name = confirm ("确实要删除该目录,以及其下 所有 相片吗?");
 if (new_name)
 {
  //submit;
  document.del_form._dir.value = p;
  window.open("null.html","name","height = 200,width=300");
  document.del_form.submit();
 }
}
阅读全文
0 0

相关文章推荐

img
取 消
img