Microsoft KB Archive/928711

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 10:25, 21 July 2020 by X010 (talk | contribs) (Text replacement - ">" to ">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


How to make hyperlinked buttons readable to screen-reader software in Expression Web

Article ID: 928711

Article Last Modified on 12/6/2006



APPLIES TO

  • Microsoft Expression Web



INTRODUCTION

This article describes how to change the behavior of hyperlinks that were created by using the Go To URL feature in Web pages that were created in Microsoft Expression Web. This changed behavior resolves the problem in which some screen-reader software could not read hyperlinks that were created by using the Go To URL feature if a browser has the Scripting option turned off (disabled).

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

MORE INFORMATION

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

When you create a hyperlink by using the Go To URL feature, Expression Web 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 was turned off, the onclick event is not processed. Additionally, a readable URL address is not created for screen-reader software. To work around this issue, you can use the <noscript> tag as follows.

<noscript><a href=http://URL_Address>Link Text</a></noscript>

Then, change the HTML code segment as follows.

<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 Expression Web.
  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

    tag.
  5. On the File menu, point to Preview in Browser, and then click the appropriate option.


REFERENCES

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

831082 How to make hyperlinked buttons more accessible to screen reader software in FrontPage 2003


Keywords: kbhowto kbexpertiseinter KB928711