Helmet Posted March 2, 2009 Share Posted March 2, 2009 I am a simple man with a simple goal: I would like to track clicks on affiliate advertising in an iframe. I have tried adding an onclick handler, but I'm getting a "null value" error (Safari): document.getElementById('myFrame').contentWindow.document.body.onclick=function() { myFunction();} What gives? Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 2, 2009 Share Posted March 2, 2009 document.getElementById('myFrame').contentWindow.document.body.onclick=function() { malfunction();}; Quote Link to comment Share on other sites More sharing options...
Helmet Posted March 3, 2009 Author Share Posted March 3, 2009 As in it can't be done or you're bored? Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted March 3, 2009 Share Posted March 3, 2009 as i ran it through jslint to make it stop erroring Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.