var menu;
try {
menu = document.getElementById("awmAnchor-menu");
} catch(err) {
try {
menu = document.getElementById("nomenu");
} catch (err) {
//Do Nothing
}
}
Doesn't seem to work any idea's?
Alright i got this code
try {
var menu = document.getElementbyID("awmAnchor-menu");
} catch(err) {
try {
var menu = document.getElementbyID("nomenu");
} catch (err) {
//Do Nothing
}
}
and the reason it tries both is because the id could be both is this wrong?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.