关于离开问题的Java Popup [英] Java Popup on Leave Problem

查看:68
本文介绍了关于离开问题的Java Popup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在离开javascript弹出窗口时也遇到了麻烦。当我浏览到另一个页面而不是等到我完全离开我的网站时,它似乎弹出了
。我究竟做错了什么。请注意,我正在使用Front Page。我在 www.over100percent.com 上安装了

。这是我正在进行的剧本。

头部。这需要在每一页上吗?


我在头上有这个...


< script language =" JavaScript" ;>


<! - 开始

函数leave(){

window.open(''http: //over100percent.com/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.com (房地产高级培训

专业人员)
http://over100percent.com (房地产经纪人赚取超过100%)

http :: / hipfsbo.com(对于认真的购房者或买家来说,这是一个有用的地方

对新想法开放了)

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.com. 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(''http://over100percent.com/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.
http://brokeragenttraining.com (Advanced training for real estate
professionals)
http://over100percent.com (Realtors earn over 100 percent)
http::/hipfsbo.com (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.com>说:

http://www.dannyg。 com / ref / javavsjavascript.html
Previously in alt.html,comp.lang.javascript,alt.www.webmaster, Steve
Horrillo <us****@stephenhorrillo.com> said:

http://www.dannyg.com/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.org/TR/html401/interac...#adef-onunload

你怎么知道他们是否要离开当前页面

要转到您网站上的其他网页,还是访问其他网站?更多的是

点,为什么你认为你有权知道?


-

Mark Parnell
http://www.clarkecomputers.com.au


以前在alt.html,comp.lang.javascript,alt。 www。网站管理员,微芯片

< ve *********** @ gmail.com>说:
Previously in alt.html,comp.lang.javascript,alt.www.webmaster, microchip
<ve***********@gmail.com> said:
1.再次,你忘记了<!---------开始斜线
1.Yet again, you forgot the <!---------begin slashes




完全摆脱HTML评论。这没有必要。


-

马克帕内尔
http://www.clarkecomputers.com.au


这篇关于关于离开问题的Java Popup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆