The Web Design Team's WDTzine Presents...

Making Javascript Accessible

Many times web developers/designers want to open a new window with a specific size, with or without toolbars. The most common way of doing that is to use javascript. This can present a problem for people who do not have javascript enabled or need assistive devices that do not support javascript. In either case the link will not function and can cause the page to jump to the top,

The following are the most commonly used javascript codes for opening pop-up.

<a href="#" onclick="'it.htm, 'newWindow')"> click here </a>

<a href="'it.htm', 'newWindow')" > click here </a>

Try using this instead:

<a href="it.htm" target="newWindow" onclick=",; return false"> click here </a>

If you need a window of specific dimensions opened try:

In the head section:

<script language="javascript">
<!-- new window
function openpopup(){
var popurl="it.htm","","width=200,height=200,")

<a href="it.htm" target="newWindow" onclick="javascript:openpopup(); return false"> click here </a>

Copyright 1999-2003 All rights reserved.
WiserWays - Cheryl D. Wise