I have hundreds of link variables.
var aa = "http://site1.com";
var bb = "http://site2.com";
var cc = "http://site3.com";
How can I implement an onclick function that when you click for example "aa" id font, it goes to aa link ?
<font id="aa">site1</font>
<font id="bb">site1</font>
<font id="cc">site1</font>
<a>with anhref. Why would you want to make<font>elements clickable, and thus make your page unusable for keyboard users who for whatever reason can't use a mouse or other pointing device?<font>is a silly tag to be using in the first place. Use an<a>tag or people will hate your website.