自动在javascript中单击是

时间:2014-09-10 17:55:55

标签: javascript batch-file alert

我想在用于将xlsx转换为csv的javascript文件中自动执行单击。

我将提供一个提供警报的脚本片段。发出警报后,有没有办法点击是以自动询问什么?我正在使用它来创建格式化实用程序。

  // Determine whether or not linefeed characters should be removed.
  var msg = "Would you like to remove linefeed characters from all cells?";
  var title = "Remove Linefeed Characters";
  var removeLf = alert.Yes == alert(msg, title, alert.YesNo + alert.Question);
  // Click 'Yes' button here.

1 个答案:

答案 0 :(得分:0)

如果您总是需要用户点击YES ...¿为什么您不只是将true分配给alert.Yes