By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,743 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

Disable the stop button in IE6

P: n/a
Is there anyway to disable the stop button in IE 6?
Without doing "Opening in new window and toolbar is set to no"
what will document.onstop help in??

I need to capture the browser stop event...is it possible?

Sep 28 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Gayathri a écrit :
Is there anyway to disable the stop button in IE 6?
No.
Without doing "Opening in new window and toolbar is set to no"

Hotkeys are still available even without the toolbar: ESC key.
what will document.onstop help in??

I need to capture the browser stop event...is it possible?


Capturing the stop loading event or capturing the closing window event
is possible. But to prevent the user from using the stop button is
another story.

Why would you want to prevent the user of making use of the stop button?
What you are asking, looking for is considered outright abuse, excessive
control over the user, you know.

Gérard
--
remove blah to email me
Sep 28 '05 #2

P: n/a

Gayathri wrote:
I need to capture the browser stop event...is it possible?


Do you want to detect when someone presses stop before the page has
finished loading?

Sep 28 '05 #3

P: n/a
When the submit is happening,I need to detect the stop button press.
I don't want the user to stop the browser when the submit is happening.

Sep 28 '05 #4

P: n/a
I have a global flag

var submitflag =false;

before submitting I am checking if that flag is false,If its false I am
proceeding with the submit else stopping.
if(!submitFlag)
{
submitFlag=true;
hidActionId.value="A";
submit();
}

I am doing this to avoid multiple submit hits when a submit is
happening.
If the user presses the Browser stop when the page is submitting then
again he cannot click submit,As the submit flag is set to true before
submit( ).The user has to reload the page to submit the page.This is
the problem

Hope its clear!

Sep 28 '05 #5

P: n/a
Gayathri wrote:
I am doing this to avoid multiple submit hits when a submit is
happening.


Can you just disable the submit button(s) with an onclick handler?
Sep 28 '05 #6

P: n/a

Gayathri wrote:
I am doing this to avoid multiple submit hits when a submit is
happening.


You'd be much better off coding the server side of the application to
deal correctly with multiple submit button clicks.

Sep 29 '05 #7

P: n/a
Gayathri wrote :
When the submit is happening,I need to detect the stop button press.
I don't want the user to stop the browser when the submit is happening.

Your post here is as much non-justifiable as preventing someone from
stopping a file download once the download has started. The user should
be able to stop a file download or a form submission *_at any time_*. A
tv viewer should be able to zap to another channel at any time as well,
in the middle of a serie episode or in the middle of an advertisement.
What you're trying to do is non-sense to me.

In your own logic, your next step is how to detect the user who is about
to leave your site or about to disconnect from internet and how to
prevent that.
Then, your next step is how to detect the user who is about to turn off
his computer and how to prevent him from doing that.

Gérard
--
remove blah to email me
Sep 29 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.