One method is to use VBScript MsgBox instead of confirm.
Main Topics
Browse All TopicsHi
Can anyone help me this rather trivial issue?
I have a function (within a PL/SQL package):
HTP.p
('<SCRIPT LANGUAGE="JavaScript">
function yes_no_conf(){
if (confirm("Load Another File?")) window.location="www.googl
else window.location="www.altav
}
</script>'
);
And this is used by the following button:
htp.p ('<INPUT TYPE=button VALUE="Done" onclick="javascript:yes_no
My question is simply:
By defalt the two options from the comfrim box are "OK" and "Cancel". Is there any way of changing the display value to read "OK" and "No" or even better "Yes" and "No"?
Thanks for any help in advance
Duncs
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi, do this..
<script LANGUAGE="JavaScript">
function newConfirm(title,mess,icon
var IE4 = document.all;
if (IE4) {
icon = (icon==0) ? 0 : 2;
defbut = (defbut==0) ? 0 : 1;
retVal = makeMsgBox(title,mess,icon
retVal = (retVal==6);
}
else {
retVal = confirm(mess);
}
return retVal;
}
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Function makeMsgBox(tit,mess,icons,
butVal = buts + (icons*16) + (defs*256) + (mods*4096)
makeMsgBox = MsgBox(mess,butVal,tit)
End Function
Function makeInputBox(tit,pr,def)
makeInputBox = InputBox(pr,tit,def)
End Function
-->
</SCRIPT>
HTP.p
('<SCRIPT LANGUAGE="JavaScript">
function yes_no_conf(){
if ( newConfirm(' l0_0laelien Give me the points buddy','check the values of the button ;) ',1,1,0) )
{ window.location="www.googl
else {window.location="www.alta
}
</script>'
);
SEEEEEEEEE YA!
(0_0 )
Business Accounts
Answer for Membership
by: ZvonkoPosted on 2004-05-18 at 03:31:43ID: 11096718
No, it is not possible.
It is a built in feature of the browser and cannot be handled by script.
You have to simulate the confirm() behaviour and will get in more trubles when not letting that feature as is.