Hi,
I have several hyperlinks on my pages, and if a user clicks on them, I want them to be sure they are doing what they want to do. I wrote the following, but withough the href property in the <a> tag, the text doesn't appear as a link, and the mouse doesn't change either.
Can anyone lend any insight into what I can do to make this happen?
Thanks!
--Phil
<script language="javascript">
function callalert(wheretogo)
{
if (confirm("Are you sure you want to do this?"))
{
location=wheretogo;
}
}
</script>
<a class="mylink" name=" onclick="callalert(this.name)">Test Me</a>
I have several hyperlinks on my pages, and if a user clicks on them, I want them to be sure they are doing what they want to do. I wrote the following, but withough the href property in the <a> tag, the text doesn't appear as a link, and the mouse doesn't change either.
Can anyone lend any insight into what I can do to make this happen?
Thanks!
--Phil
<script language="javascript">
function callalert(wheretogo)
{
if (confirm("Are you sure you want to do this?"))
{
location=wheretogo;
}
}
</script>
<a class="mylink" name=" onclick="callalert(this.name)">Test Me</a>