Menu
Is there a way to put conditions in an href instead of inside below script tags:
[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 so I dont have to use <script> tags and can create conditions in my href tag?
[code]
<a href=’site.cfm’ title=’if(navigator.appname == “Netscape”)’netscape words here’;else ‘IE here’;>Link</a>