【发布时间】:2014-01-18 10:03:48
【问题描述】:
<label>
<input type="button" onclick="abc()" id="log" value='SUBMIT'>
</label>
<script>
function abc() {
google.script.run.withSuccessHandler(callback).processForm(document.forms[0]);
}
function callback(ste) {
if (ste == "true") {
var a = document.getElementById('log');
document.write(a.value);
document.write('<a href="http://www.w3schools.com/js/js_htmldom_html.asp">do stuff</a>');
} else document.write("false");
}
</script>
由于我正在使用 document.location && window.location 都无法切换页面,有没有其他方法可以帮助我
【问题讨论】:
-
您在哪里使用 document.location?
-
不确定,我确实理解了您的问题。
-
我用 document.write 代替,但没有用
标签: javascript html google-apps-script