if(confirm('text'))... issue

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
punctweb
Forum Newbie
Posts: 11
Joined: Mon Aug 30, 2004 5:53 pm
Location: Romania, Tulcea
Contact:

if(confirm('text'))... issue

Post by punctweb »

Hey. First of all, if this has been asked before on this forum, sorry, my bad, please give the link and i'll read'it.

If no, here's my question:

let's say that i have the following:

Code: Select all

//the link is minimum on tags... ignore that :)

<a href=&quote;javascript: if(confirm('A question ?')) window.location = 'some_page.php'&quote; >delete</a>
when the user clicks that link, a pop-up window will apear, asking him to answer with OK or CANCEL on that question. Nothing new so far...

But how can i (if it's possible) change that text shown an those buttons (OK and/or CANCEL) without modifying the source code of the browser ?

The purpose of this issue: multilanguage problem (instead of CANCEL i want to say ANULEAZA for example, in romanian... but the language thoes not matters...)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the window is generated by the OS and browser. They will be localized to the language if the OS is set to the proper language settings. You cannot change them unless you have another application on top of the browser that intercepts the window and changes its contents.
User avatar
punctweb
Forum Newbie
Posts: 11
Joined: Mon Aug 30, 2004 5:53 pm
Location: Romania, Tulcea
Contact:

Post by punctweb »

so there is nothing i can do about'it ? Not even with ActiveX or somthing ? :cry:

I mention that there is no other aplication or somthing like to monitor this pop-ups...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

only if you make the pop-up yourself can you localize it to whatever you wish.
Post Reply