evergreean43
Technical User
Is there a way to put conditions in an href instead of inside below script tags:
My attempt is really far off but not sure how to do it?
Code:
<script>
if(navigator.appname == "Netscape")
{
document.write("<a href='site.cfm' title='netscape words here'>Link</a>");
}
else
{
document.write("<a href='site.cfm' title='IE words here'>Link</a>");
}
</script>
My attempt is really far off but not sure how to do it?
Code:
<a href='site.cfm' title='if(navigator.appname == "Netscape")'netscape words here';else 'IE here';>Link</a>