Page 1 of 1

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

Posted: Thu Mar 17, 2005 6:30 pm
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...)

Posted: Thu Mar 17, 2005 6:34 pm
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.

Posted: Thu Mar 17, 2005 6:35 pm
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...

Posted: Thu Mar 17, 2005 6:43 pm
by feyd
only if you make the pop-up yourself can you localize it to whatever you wish.