Y
yofnik
How do you check if a function exists in IE? If I try the following:
if(document.selectSingleNode)
{
document.selectSingleNode(xpath);
}
I get an error saying the wrong number of arguements were supplied
(obviously the function exists). I have also tried
if(typeof document.selectSingleNode == "function")
but to no avail. Any advice?
Thanks.
if(document.selectSingleNode)
{
document.selectSingleNode(xpath);
}
I get an error saying the wrong number of arguements were supplied
(obviously the function exists). I have also tried
if(typeof document.selectSingleNode == "function")
but to no avail. Any advice?
Thanks.