Click to See Complete Forum and Search --> : Manipulating window.confirm()


waxie
November 8th, 2006, 03:14 AM
Hi guys,

I have an issue with my confirm window. I currently am using firefox browsers in 2 PCs. The problem is, the OK button in the other pc generated by window.confirm() shows after the Cancel button (the order of buttons is Cancel - OK instead of OK-Cancel). But in the other pc, it is fine. What may be causing the issue? I was thinking it may be a browser issue but then when i used konqueror, it outputted alright.

Is there a way to manually manipulate the buttons?

I would appreciate any inputs and suggestions on how I can remedy this petty issue.

Thanks!


-waxie-

Alsvha
November 8th, 2006, 05:09 AM
Hi guys,

I have an issue with my confirm window. I currently am using firefox browsers in 2 PCs. The problem is, the OK button in the other pc generated by window.confirm() shows after the Cancel button (the order of buttons is Cancel - OK instead of OK-Cancel). But in the other pc, it is fine. What may be causing the issue? I was thinking it may be a browser issue but then when i used konqueror, it outputted alright.

Is there a way to manually manipulate the buttons?

I would appreciate any inputs and suggestions on how I can remedy this petty issue.

Thanks!


-waxie-

I don't know of a way to manipulate the buttons on window.confirm.

My guess is that it is a specific problem with the browser in question, or operating system.
Does the computer, which does not show it properly, run national languaged operating system, and the one which shows well enough, on English language?

Anyways, try testing on various computers (if you have the option), or provide a link so people from here can help, to see if it is a general issue or it is a browser/OS specific issue. And if it is the latter, I would not worry to much about it.

PeejAvery
November 8th, 2006, 08:31 AM
As alsvha stated, there is no way to change these buttons. All three, alert(), prompt(), and confirm(), are static message boxes.

You can, however, create your own window with the options you desire. In fact, the rating of a post here at CodeGuru uses the manner of which I speak.