Hi
I have this wiered problem with the confirm method
i have a function with the same name as confirm but it takes 3 parameters as shown below. Now when i want to use the built in confirm method of jaascript it seems to be getting overloaded with the my own confirm function> Is there a way i can prven this from happening. Please help
Her is the code:
<script language="javascript">
function f2()
{
var test = confirm ("Delete?"
}
function confirm(str1,str2,str3)
{
alert("my confirm"
}
</script>
<body>
<input type="button" value="click here" onClick="javascript: f2()">
</body>
I have this wiered problem with the confirm method
i have a function with the same name as confirm but it takes 3 parameters as shown below. Now when i want to use the built in confirm method of jaascript it seems to be getting overloaded with the my own confirm function> Is there a way i can prven this from happening. Please help
Her is the code:
<script language="javascript">
function f2()
{
var test = confirm ("Delete?"
}
function confirm(str1,str2,str3)
{
alert("my confirm"
}
</script>
<body>
<input type="button" value="click here" onClick="javascript: f2()">
</body>