Forum Moderators: open
Can I define the value of HREF given the value of a javascript function? Also how can I reference that varaible?
<a href=Video_Address_Var>Click here to view video </a>
<a href="javascript:function();">View Video</a>
If your function exists:
<script type="text/javascript"> function goToHere(passedIn) { location.href = passedIn; }</script>
You can pass variables as well
<a href="javascript:goToHere('video.html');">View Video</a>