Forum Moderators: open
the code is:
<a href="#" onclick="DoCal(this.form.outputDate);">
<img src="cal.gif" border="0" width="16" height="16"></a></td>
and the js:
<SCRIPT>
function DoCal(elTarget) {
if (window.showModalDialog) {
var sRtn;
sRtn = showModalDialog("calendar.htm","","center=yes;dialogWidth=350pt;dialogHeight=200pt");
if (sRtn!="")
elTarget.value = sRtn;
} else
alert("Internet Explorer 4.0 or later is required.")
}
</SCRIPT>
the onclick worked when it was a button....and Im bad at js...
thanks,