Tech Off Post

Single Post Permalink

View Thread: More ECMAScript fun!
  • User profile image

    W3bbo wrote:

    The referenced ECMAScript file:

    btnHeightInc.onclick = HeightIncrease();
    btnHeightDec.onclick = HeightDescrease();
    btnWidthInc.onclick = WidthIncrease();
    btnWidthDec.onclick = WidthDecrease();

    Are you sure that you want to call these methods here? You should remove the () from these if you want to assign the functions as the onclick event handlers.