【发布时间】:2017-02-24 12:01:34
【问题描述】:
到目前为止,我已经尝试了所有方法。我的代码在下面,但是当我运行它时,似乎什么也没发生,也没有收到任何错误消息。我正在使用 Toad for oracle,所以我实际上是在硬编码
-- 表单域和按钮--
http.p ('<input type="form" method="post" name="idstu" id="idstu" placeholder="e.g. 000123456">');
htp.br;
htp.p (' <input type="submit" onclick="confirmMsg()" value="Submit">');
-- javascript--
http.p ('<script type="text/javascript">
function confirmMsg() {
var field1 = document.getElementById("idstu").value;
alert(field1 "has been unsuspended");
}');
【问题讨论】:
-
您不需要在警报中连接变量和刺痛吗? alert(field1 + "已取消暂停");
标签: javascript html plsql toad