Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to make hyperlinked buttons more accessible to screen reader software in FrontPage 2003 and in SharePoint Designer 2007


View products that this article applies to.

Introduction

This article discusses how to change the behavior of hyperlinks that were created with the Go To URL feature in Web pages that were created in Microsoft Office FrontPage 2003 or in Microsoft Office SharePoint Designer 2007. This behavior changes the problem where some screen reading software could not read the hyperlinks that were created with the Go To URL feature if the Web browser has the Scripting option turned off (disabled).

If the Scripting option is turned off, you must use the <noscript> tag so that the screen readers can follow the hyperlink.

↑ Back to the top


More information

The Go To URL feature in FrontPage 2003 is implemented through a JScript function. This requires that the Scripting option is turned on (enabled) in the Web browser. The JScript function is typically used for buttons and for other objects.

When you create a hyperlink with the Go To URL feature, FrontPage 2003 creates the following Jscript code segment to handle the URL address:
<p><input type="button" value="Link Button" name="B1" 
onclick="FP_goToURL(/*href*/'http://URL_Address')"></p>
If the Scripting option has been turned off, the onclick event is not processed, and a readable URL address is not created for screen reader software. You can use the <noscript> tag to work around the problem. The <noscript> tag would take the following form:
<noscript><a href=http://URL_Address>Link Text</a></noscript>
You would then change the HTML code segment to the following code:
<p><input type="button" value="Link Text" name="B1" 
onclick="FP_goToURL(/*href*/'http://URL_Address')"> 
<noscript><a href=http://URL_Address>Link Text</a></noscript></p>
To change the HTML code segment, follow these steps:
  1. Open the Web page that you want to change in FrontPage 2003 or in SharePoint Designer 2007.
  2. Click the button or the object that you want to change on the Web page.
  3. Click the Code tab on the bottom of the page to switch to HTML code view. The HTML code for the button will be selected.
  4. Add the <noscript> HTML code before the </p> tag.
  5. In FrontPage 2003, click the Preview tab on the bottom of the page to preview the Web page. In SharePoint Designer 2007, select the File menu and then click Preview In Browser.

↑ Back to the top


Keywords: KB831082, kbhowto, kbwebbrowser, kbprogramming

↑ Back to the top

Article Info
Article ID : 831082
Revision : 4
Created on : 6/20/2007
Published on : 6/20/2007
Exists online : False
Views : 391