Skip navigation

When linking to a popup using Javascript make sure that you have catered for users who have Javascript disabled.

(see guidelines for overcoming access barriers)

Example:

catering for users without Javascript:

The link below will open in a customised pop-up window if Javascript is enabled. If Javascript is disabled the link will open up a new browser window without any customised options.

Copyright notice

Code for catering for users without Javascript


<p>
   <a href="../copyright.htm" target="_blank"
onclick="popUp(this.href,'large'); return false;"
title="Group tools">Copyright notice </a>
</p>

Note: the following Javascript is used:


function popUp(newPage,popMode,popWidth,popHeight) {
if(popWidth && popHeight){
    var popProperties = "width=" + popWidth + ", height="
      + popHeight + ", left=0, top=0, scrollbars=1,resizable=yes";
   } else if(popMode=="small"){ //if popMode is feedback
       var popProperties = "width=300, height=300, left=0, top=0,
       scrollbars=1,resizable=yes";
             } else{ //if popMode is large or other
                    var popProperties = "width=650, height=460,
					left=0, top=0,
                    scrollbars=1,resizable=yes";
                    }
   activityWindow = window.open(newPage, '', popProperties);
   activityWindow.focus();
  }

Back to top