Avatar of kiranswaminathan
kiranswaminathan asked on

Select Javascript not working for Safari

Hi ,

We have issues with some javascript  where, Safari browser can't interpret the javascript select command (list box to select the country). I know that Safar can be picky when running javascript. But to the best of my knowledge, this follows W3C standards.  Any help would be much appreciated

regards
K
<!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" xml:lang="en" lang="en">
 
<head>
 
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
<title>xx- Europe</title>
 
<style type="text/css">@import url(css/styles-xxx.css);</style>
 
<link rel="stylesheet" href="css/simple-xxxxx.css" />
 
<style type="text/css">
 
tr.odd {
 
background-color: #F7F7F7;}
 
table.contentTable{
 
margin-bottom: 25px;}
 
table.contentTable td, table.contentTable th {
 
border-bottom: 1px solid #ccc;
 
padding: 5px 10px 5px 1px;}
 
table.contentTable td.sep, table.contentTable th.sep {
 
border-left: 1px solid #ccc;
 
padding-left: 10px;}
 
table.contentTable td.space, table.contentTable th.space {
 
padding-right: 25px;}
 
table.contentTable, table.threeColTable {
 
margin-bottom: 25px;}
 
table.contentTable td, table.contentTable th {
 
border-bottom: 1px solid #ccc;
 
padding: 5px 10px 5px 0;}
 
table.contentTable td.sep, table.contentTable th.sep {
 
border-left: 1px solid #ccc;
 
padding-left: 10px;}
 
table.contentTable td.space, table.contentTable th.space {
 
padding-right: 25px;}
 
</style>
 
<script type="text/javascript">
 
function Link() {
 
</script>
 
</head>
 
<body>
 
<div id="document" style="width: 742px; height: 1007px">
 
<div id="head">
 
<table cellspacing="0" cellpadding="0" border="0" width="100%">
 
<tr valign="top"><td><img border="0" src="images/logo_xxxbank.jpg"></td></tr>
 
<tr align="center"><td align="center"><b><font size="5">Virtual Office Portal</font></b></td></tr>
 
<tr align="center"><td><img src="images/08_map.gif" alt="Map of Europe" /></td></tr>
 
<tr align="center"><td><br>
 
<SELECT NAME="liste1" SIZE=1>
 
<OPTION SELECTED VALUE="">--- Select your Environment ---</OPTION>
 
<OPTION VALUE="/Lond/xxxDenmark/">Denmark</OPTION>
 
<OPTION VALUE="/Lond/xxxFrance/">France</OPTION>
 
<OPTION VALUE="/Lond/xxxSweden/">Sweden</OPTION>
 
<OPTION VALUE="/Lond/xxxSwitzerland/">Switzerland</OPTION>
 
<OPTION VALUE="/Lond/xxxUK/">UK</OPTION>
 
</SELECT>&nbsp;&nbsp;&nbsp;<input type="image" src="images/go.gif" class="inline" onClick="if (liste1.selectedIndex!=0) location=liste1.options[liste1.selectedIndex].value; else alert('Veuillez faire un choix au menu.')">
 
<br><br></td></tr>
 
</table>
 
<div id="foot"><p id="copy">Copyright xxxxxxxxxxx</p></div>
 
</body>
 
</html >

Open in new window

Web BrowsersWeb ApplicationsJavaScript

Avatar of undefined
Last Comment
kiranswaminathan

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
hielo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
kiranswaminathan

Thank you .
Your help has saved me hundreds of hours of internet surfing.
fblack61