Announcement

Collapse
No announcement yet.

window.attachEvent("onload") - PROBLEM

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    window.attachEvent("onload") - PROBLEM

    Is it possible to use the following code in V.7?
    Code:
    if (window.addEventListener){ 
    	window.addEventListener("load", prepareMenu, false) 
    } else if (window.attachevent) { 
    	window.attachevent("onload", prepareMenu) 
    } else { 
    	window.onload=prepareMenu 
    }
    This code doesn't seem to call the javascript prepareMenu() function, but in a test application (not Actinic) the script works fine.

    Any ideas?

    #2
    Hi Sam,

    Where are you inserting the code?

    It looks incomplete to me. Is it supposed to produce a menu?
    Regards,

    Toby Blanchard

    Comment

    Working...
    X