【发布时间】:2017-07-30 19:03:37
【问题描述】:
你好,我有一个 Django 基础应用程序,其中一个应用程序正在与客户服务聊天。
我希望当客户点击 [x] 图标或关闭窗口时,应该会出现一个小的弹出窗口,其中包括:
1.一个字符串,如“谢谢,我们希望你能花时间回答调查:” 2. 将客户引导至调查页面的按钮。
我有这部分聊天应用程序 java 脚本文件:
window.onbeforeunload = function() {
window.open ("http://gadgetron.store/male_chatbot/popup/"); <= i have tried it and it doesn't work
$.ajax({
type: 'GET',
url: 'http://gadgetron.store/chatbot/run_python_clear_chatM/',});}
谢谢你,
【问题讨论】:
标签: javascript html django