473,779 Members | 2,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WINDOW.EVENT

Senhores(as),
não estou conseguindo literatura que me auxilie construir uma
'function' para desabilitar os botoes responsáveis pelo 'refresh' no
browser. Como o botão 'F5', 'ctrl R' e botão direito do mouse.
poderiam me ajudar?
Desde já agradeço.

Dec 29 '05 #1
4 1471
spektro escreveu:
Senhores(as),
não estou conseguindo literatura que me auxilie construir uma
'function' para desabilitar os botoes responsáveis pelo 'refresh' no
browser. Como o botão 'F5', 'ctrl R' e botão direito do mouse.
poderiam me ajudar?
Desde já agradeço.


This is an English javascript group, if you want to receive an answer,
write in English =/

--------------------

"I couldn't find literature to construct a function to disable the
buttons responsible for the browser refresh. Like the key F5, Ctrl+R
and the right mouse button. Could anybody help me?

Thanks in advance.

--------------------

I tell you to not control the user... Why do you want to block such
feature?

If you want to block content refreshing just because the users are
making too many requests, make it on the server by analyzing the amount
of requests, you can make the user wait at least 1 minute before you
start feeding content to him again... You can also make something to
auto-update what your users like to refresh, by using the so called
httprequest, that would save some of your bandwidth, whatever...

But you just can't block the browser functions, it's wrong... The user
can close the browser and open it again, he may run your site in a
cellphone or a browser where the refresh key is F9, etc... The browser
is just a host application, the security and everything else is in your
hands ;]
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com

Dec 29 '05 #2
On 29/12/2005 14:01, Jonas Raoni wrote:

[snip]
This is an English javascript group, if you want to receive an answer,
write in English =/


Actually, this is an international group and therefore posts in any
language are welcome. However, as there are language-specific groups
(such as the German, de.comp.lang.ja vascript), these can be a better
alternative in the first instance.

As there is no English-only group, c.l.j does receive predominately
English posts. A poster can, by all means, post in a different language,
but they would be more likely to obtain replies by including an English
translation alongside their preferred language.

See <http://www.jibbering.c om/faq/faq_notes/clj_posts.html# ps1Lang>.

[snip]

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Dec 29 '05 #3
Michael Winter escreveu:
On 29/12/2005 14:01, Jonas Raoni wrote:
This is an English javascript group, if you want to receive an answer,
write in English =/ Actually, this is an international group and therefore posts in any
language are welcome.


Hmmm, I don't agree at all, if this group is international, then an
international language should be used... I could write everything in
portuguese, but I doubt people would like to see my strange posts and
it doesn't make sense expecting someone to translate for me...

However, as there are language-specific groups
(such as the German, de.comp.lang.ja vascript), these can be a better
alternative in the first instance.
Yeah, that's the why I think the language should be respected...
There's a brazilian javascript group on yahoo with more than 2k people,
he could have asked there for example :)

See <http://www.jibbering.c om/faq/faq_notes/clj_posts.html# ps1Lang>.


Hmm, not today, I'm going to travel soon... I'll start the year lost in
a trash can xD

Happy new year for everybody hahaha!!!
--
Jonas Raoni Soares Silva
http://www.jsfromhell.com

Dec 30 '05 #4
Jonas Raoni <jo********@gma il.com> wrote:
Hmmm, I don't agree at all, if this group is international, then an
international language should be used... I could write everything in
portuguese, but I doubt people would like to see my strange posts and
it doesn't make sense expecting someone to translate for me...


I'll have to brush upon my Esperanto, I'm afraid. In any case, while
you might not be able to expect a response to your posts in
Portuguese, I don't believe there is any constraint from posting in
that language if you so choose. Of course, establishing topicality
would be somewhat tougher...

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Dec 30 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
16602
by: Barry Svee | last post by:
I'm struggling with the JavaScript blur event. I have an activex control that I need to interact with when a window loses focus, namely to instruct it to give up control of a barcode scanner so that the application being brought foreward can take control. It has been my observation that when I set the window.onblur function, the window will gain focus and then immediately lose focus (blur) to the first field, button, or whatever that is...
6
4578
by: Brian | last post by:
Hi everyone, I'm writing a function (in javascript) that needs to do one thing if the page has not loaded, and another (different) thing if the page has already loaded. I'm looking for a way to tell if the window.onload event has already fired. I cannot edit the onload event handler itself, and my function can only exist in an external js file, sourced from the document's head section. Any ideas?
10
9817
by: Tom Szabo | last post by:
Is there an event when that triggers when the window is closing.... I am talking about when the user clicks on the cross on the right top corner of the window!!!
3
27193
by: Søren M. Olesen | last post by:
Hi In IE there seem to be a global variable window.event, holding the current event....however this dowsn't work in FireFox... is there a similar way to get the current event?? TIA Søren
19
31072
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). The problem is that after the reload, it brings you right to the top of the page. When I click 'refresh" on the original page, it brings me back to the original viewing position. Is there a way to duplicate this in from the popup window. Also,...
14
1490
by: Thomas Mlynarczyk | last post by:
Hi, I have a JavaScript application which opens a second window. Which is the best way to detect over which (if any) of the two windows the mouse is? First I thought document.onmouseout and document.onmouseover (for both windows) would be the way to do it, but some browsers (like Firefox) seem to fire these even when the mouse passes within the document (like from the "empty body background" to a div), and anyway, any child elements of...
6
1578
by: Donius | last post by:
Is there a simple and clean way to get the window object that contains an element that is passed into a function? I want to throw some alerts / confirms, but don't want to switch away from whatever window they're currently looking at. I can step up by parentNode until the nodeType equals 9, which means the document element, and then step up one more...does that ensure a window object? Or i could step up until the node had no...
1
11583
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all out). Therefore, here goes my simple "web dialog box with parent event handler fireing" solution. ...
9
6840
by: mike | last post by:
I have this script executing <script> function mike_test(event) { x = window.event.clientX; alert(x); } </script> <iframe src="blank.html" id="my_iframe1"> </iframe>
6
63117
by: Luke Matuszewski | last post by:
As in topic... has anyone used it ? I tried to use it but i guess i failed... here is a code: <html> <head> <title></title> <script type="text/javascript"> function closedWin() { confirm("close ?");
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10305
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10137
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9928
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.