Problems of JavaScript

JavaScript code is processed on the client side and the processing of code depends on each browser.
Some JavaScript codes do not work with every browser.

Ex. 1: nested switch statements     did't work with Internet Explorer

switch (codeNum) {
  case 1:
   switch (modeNum) {
     ...
   }
   break;

Ex. 2: print command within a different frame     did't work with Internet Explorer

function WindowPrint() {
     window.top.frame1.print();
}

previous   next