1
我正在處理包含數字電話目錄的頁面。列出了名稱和編號,但我想要了解有關在單擊名稱時彈出窗口中顯示的條目的更多詳細信息。不幸的是,我遇到了Javascript的問題。我對這種語言很陌生,但我認爲我聲明的函數中的代碼是錯誤的,我傳遞的參數的語法不正確,或者我省略了代碼的重要部分。任何協助你可以提供這個問題將不勝感激。從超鏈接調用Javascript函數
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
Function DisplayContactDetail(contact, windowname) {
window.open(contact, windowname);
}
</script>
<title>Cigna Security & Reception Phone Directory</title>
</head>
<body>
<div class="centerelement">
<div id="indexpageheader">
CIGNA SECURITY & RECEPTION DIGITAL PHONE DIRECTORY
</div>
</div>
<table>
<th colspan=2 width="auto">
ALLIEDBARTON
</th>
<tr>
<td width="50%">
<a href="" onclick="DisplayContactDetail('cigna.com','ContactDetail')">
NEPA District Office
</a>
</td>
<td>(610) 954-8590</td>
</tr>
<tr>
<td width="50%">Post Watch</td>
<td>(800) 643-8714</td>
</tr>
</table>
在此先感謝!
那麼,有什麼問題?什麼都沒發生?獲得意外的結果?發生錯誤? – Teemu
當我點擊超鏈接時沒有任何反應。 –