Please have a look at the code i have provided. Please explain to me what it is .... Appreciate your help !
Thanks
Main Topics
Browse All TopicsHi,
Can you please provide me the code for:
Confirmation box with "Yes" or "No" instead of "OK" or "Cancel" in JavaScript ? Please explian me the code in simple terms.
<script language=javascript>
function window.confirm(str)
{
execScript('n = msgbox("' + str + '","4132")', "vbscript");
return(n == 6);
}
var r = confirm("Can you do it?");
alert(r);
</script>
Thanks
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.
i can tell you for sure that your code will only work in IE
http://stackoverflow.com/q
Business Accounts
Answer for Membership
by: erikTsomikPosted on 2009-09-23 at 12:58:54ID: 25407248
take a look at this 4/strict.d td">
d('anc'); Id('cfm');
;
m/">google. com</a>
owthread.p hp?t=81981
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a {
color:#000;
}
</style>
<script type="text/javascript">
var test=0;
var obj;
var obj1;
window.onload=function() {
obj=document.getElementByI
obj1=document.getElementBy
obj.onclick=function() {
conFirm();
return false;
}
}
function conFirm() {
if(test==0){
obj.innerHTML='confirm?';
test++;
return false;
}
if(test==1){
obj1.innerHTML=
'<a href="'+obj.href+'" onclick="conFirm()">Yes<\/a> |'+
' <a href="#" onclick="conFirm();return false;">No<\/a>';
test++;
return false;
}
if(test==2) {
obj.innerHTML='google.com'
obj1.innerHTML='';
test=0;
return true;
}
}
</script>
</head>
<body>
<div>
<a id="anc" href="http://www.google.co
</div>
<div id="cfm"></div>
</body>
</html>
http://codingforums.com/sh