# 10.2:H210101 Notify the user if Script is to be used to open a new window or change current window Web site. ## Improper design The improper design below automatically opens a new window which have caused delusion for visually disabled users. Improper design:
    <BODY bgcolor="#FFFFFF" text="#000000" onLoad="openwin();">
      <SCRIPT language="javascript">
      function openwin(){
      window.open("linkto/210101.jsp","NewWindow",
                  "toolbar=no,status=no,directories=0,
                   status=0,menubar=no,scrollbars=no,
                   resizable=no,width=300,height=200")
      }
      </SCRIPT>
      </BODY>
End of example ## Proper demonstration Proper example should allow users to open a new window instead of automatically opening a new window. Proper example:
    <FORM>
      <INPUT type="submit" name="Submit" value="sale information"
       onClick="MM_openBrWindow('/linkto/210101b.jsp','','width=300px,height=200px')">
      [click here to open new window]
    </FORM>
End of example