You are here: irt.org | FAQ | JavaScript | Object | Q1599 [ previous next ]
Yes:
<script language="JavaScript"><!-- var okay = confirm('Is everything okay?'); var pointer; if (okay) { pointer = new Object(); } else { pointer= new Date(); } //--></script>