在https中无法使用Javascript警报

编程入门 行业动态 更新时间:2024-10-11 13:19:06
本文介绍了在https中无法使用Javascript警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好我在https中尝试了简单的javascript +表单。但是javascrip警报在某些https中不起作用。任何人都可以知道为什么它不工作 我的示例代码是

Hi I tried simple javascript + form in https. But javascrip alert is not working in some https. Can any one know that why it is not working My sample code is

展开 | 选择 | 换行 | 行号 推荐答案

您希望它何时提醒?为什么在上一次返回后你的onload返回false?无论如何,onload都不需要返回语句。 When are you expecting it to alert? Why do you have a return false in onload after a previous return? onload doesn''t require a return statement anyway.

有一件事是你正在使用return hi()但是hi函数没有返回任何东西。 well one thing is you are using return hi() but the hi function isn''t returning anything.

不需要任何返回值。只是我想得到警报。为什么这是需要的是我有一个项目,该项目警报在http://工作,而不是在https:// 。所以我只是尝试这个简单的例子,我不能成功,可以告诉我为什么这样做? Am not need any return value. Just i want to get the alert. Why this is need is am have one project , on that project alert is working in and not work in . So am just trying with this simple example and i could not succeed , can tell me why this?

更多推荐

在https中无法使用Javascript警报

本文发布于:2023-11-27 17:52:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639010.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:警报   https   Javascript

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!