关于离开问题的Java Popup

编程入门 行业动态 更新时间:2024-10-26 19:31:58
本文介绍了关于离开问题的Java Popup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在离开javascript弹出窗口时也遇到了麻烦。当我浏览到另一个页面而不是等到我完全离开我的网站时,它似乎弹出了。我究竟做错了什么。请注意,我正在使用Front Page。我在 www.over100percent 上安装了 。这是我正在进行的剧本。 头部。这需要在每一页上吗? 我在头上有这个... < script language =" JavaScript" ;> <! - 开始 函数leave(){ window.open(''http: //over100percent/popup_on_leave.htm'','''',''toolbar=no,menubar=no,loca tion = no,height = 385,width = 300''); } //结束 - > < / script> 然后我身体...... < BODY onUnload =" leave()" style =" text-align:left">< div align =" left">< font size =" 2"面= QUOT; Arial字体" color =" black">< SCRIPT LANGUAGE =" JavaScript"> - 最热烈的问候, Steve Horrillo,房地产经纪人/首席执行官/ C.Ht. http ://brokeragenttraining (房地产高级培训 专业人员) over100percent (房地产经纪人赚取超过100%) http :: / hipfsbo(对于认真的购房者或买家来说,这是一个有用的地方 对新想法开放了)

I''m also having trouble with a popup on leave javascript. It seems that it pops up when I browse to another page instead of waiting till I completely leave my site. What am I doing wrong. Mind you, I''m using Front Page. I have it installed at www.over100percent. Here''s the script I''m putting into the head section. Does this need to be on every page? I HAVE THIS IN THE HEAD... <script language="JavaScript"> <!-- Begin function leave() { window.open(''over100percent/popup_on_leave.htm'','''',''toolbar=no,menubar=no,loca tion=no,height=385,width=300''); } // End --> </script> THEN IN THE BODY I HAVE... <BODY onUnload="leave()" style="text-align: left"><div align="left"><font size="2" face="Arial" color="black"><SCRIPT LANGUAGE="JavaScript"> -- Warmest regards, Steve Horrillo, Realtor / CEO / C.Ht. brokeragenttraining (Advanced training for real estate professionals) over100percent (Realtors earn over 100 percent) http::/hipfsbo (A helpful place for the serious home seller or buyer who is open to new ideas)

推荐答案

1.再次,你忘记了<!----- ----开始斜线 2.脚本应该如何工作。 3.你可以放一个退出网站您网站上指向页面的按钮 ,上面写着感谢您访问或类似的东西,你可以在该页面上添加 脚本。除此之外,我认为没有别的方法只使用 JS。 1.Yet again, you forgot the <!---------begin slashes 2.That is how the script is supposed to work. 3.You could put a "Exit Site" button on your site that leads to a page that says "Thanks for visiting" or something like that, and you can put the script on that page. Other than that, I see no other way using only JS.

以前在alt.html,comp.lang中。 javascript,alt。 www.webmaster ,Steve Horrillo< us * ***@stephenhorrillo>说: http://www.dannyg。 com / ref / javavsjavascript.html Previously in alt.html,comp.lang.javascript,alt.www.webmaster, Steve Horrillo <us****@stephenhorrillo> said: www.dannyg/ref/javavsjavascript.html 我在离开javascript的弹出窗口时遇到了麻烦。 他们不要麻烦我。你的浏览器是否阻止弹出窗口? :-P 我做错了什么。 我从哪里开始? :-) 请注意,我正在使用Front Page。 嗯,这是你上一个问题的第一个答案,但不是 必然与这篇文章有关。 当我浏览到另一个页面而不是等到我完全离开我的网站时,它似乎会弹出。 I''m also having trouble with a popup on leave javascript. They don''t trouble me. Doesn''t your browser block popups? :-P What am I doing wrong. Where do I start? :-) Mind you, I''m using Front Page. Well, there''s the first answer to your previous question, though not necessarily relevant to this post as such. It seems that it pops up when I browse to another page instead of waiting till I completely leave my site.

正确。 当用户代理从 a窗口或框架中删除*文档*时,会发生onunload事件。 (强调我的) http: //www.w3/TR/html401/interac...#adef-onunload 你怎么知道他们是否要离开当前页面 要转到您网站上的其他网页,还是访问其他网站?更多的是 点,为什么你认为你有权知道? - Mark Parnell www.clarkecomputers.au

以前在alt.html,comp.lang.javascript,alt。 www。网站管理员,微芯片 < ve *********** @ gmail>说: Previously in alt.html,comp.lang.javascript,alt.www.webmaster, microchip <ve***********@gmail> said: 1.再次,你忘记了<!---------开始斜线 1.Yet again, you forgot the <!---------begin slashes

完全摆脱HTML评论。这没有必要。 - 马克帕内尔 www.clarkecomputers.au

更多推荐

关于离开问题的Java Popup

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

发布评论

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

>www.elefans.com

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