Dudsmack
12-02-2003, 10:38 PM
Here's the problem: I need to create a function at the document level, e.g.
function document.myfunc()
{
//...code...
}
but I don't want this function to be created if a certain condifion is true, so in wrong syntax what I want to do is:
if condition
{
function document.myfunc()
{
//..code...
}
}
else
{
}
I need to avoid the functions creation under a condition so that it doesn't override a possible existing function. Is this possible?
function document.myfunc()
{
//...code...
}
but I don't want this function to be created if a certain condifion is true, so in wrong syntax what I want to do is:
if condition
{
function document.myfunc()
{
//..code...
}
}
else
{
}
I need to avoid the functions creation under a condition so that it doesn't override a possible existing function. Is this possible?