I am trying to add an "onclick" function inside of an iframe. I have this easily done within a normal link, but trying to figure out how to set it up within an iframe. Currently using something like this: <a onclick="javascript:something();" href="http://www.somewebsite.com">Some Web Site</a> Code (markup): The iframes are setup like this: <iframe src=http://www.someiframe.com...></iframe> Code (markup): Any suggestions? I am trying to count clicks on outbound links on the site and have an iframe that im trying to count too