Following up my own post here:
I realized that the first link was getting keyboard focus for some reason. So I worked around it by defocussing it after the dialog opens, thusly:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>Ferdale Contract Manufacturing</title>
- <link href="css/ui-lightness/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" />
- <script type='text/javascript' src='js/jquery-1.4.2.min.js'></script>
- <script type='text/javascript' src='js/jquery-ui-1.8.4.custom.min.js'></script>
- <script type='text/javascript'>
- $(document).ready(function(){
- $("#theDialog").dialog();
- $("#firstLink").blur();
- });
- </script>
- <style>
- #theDialog{display:none};
- </style>
- </head>
- <body>
- <div id="theDialog" title="A dialog box">
- <div><a id="firstLink" href="url1.html">link 1</a></div>
- <div><a href id="secondLink" href="url2.html">link 2</a></div>
- </div>
- </body>
- </html>