Which Ad Code is Better: iframe or javascript?

4 replies
We all know that HTML is the best option, but what if an affiliate network only provides you with 2 options, iframe or javascript?

Which is better?

Many people have javascript turned off, and many people have anti-spyware that alerts/disables iframes, so...

If you had to choose between iframe or javascript code, which would you choose, and why?

.jrd
#code #iframe #javascript
  • Profile picture of the author Liquification
    I'd pick javascript because even if it doesn't work because someone has it disabled that's better than showing up as spyware or adware. Once that happens you can almost guarantee you lost a potential customer.
    Signature

    Get your FREE Site Building Report HERE

    Money Making Tips at Making Money With Google

    {{ DiscussionBoard.errors[1114553].message }}
  • Profile picture of the author Jared Alberghini
    Thanks Liquification,

    I have been leaning towards JavaScript over the Iframe option for this specific reason...

    still curious to see what others think...
    Signature

    P.S.

    Join The Future: Telekinetic Marketing

    {{ DiscussionBoard.errors[1115273].message }}
  • Profile picture of the author mightybw
    Why not run a check and if the JavaScript is disabled, display an iframe. Something like this I would think:

    $test = get_browser();
    if ($test["javascript"] == 0) {
    echo "iframe code but with " replaced by ' for it to work";
    }

    I'm not really a coder by the way just in case it don't work.

    -edit-

    Use else to echo Javascript.
    Signature

    While you were reading my signature your competitor was entering yet another niche.

    {{ DiscussionBoard.errors[1115700].message }}
  • Profile picture of the author Affiliit
    I prefer to use php, but out of those 2 options I would use Javascript.
    Signature
    Learn Affiliate Marketing - Affiliit - Learn How to Make money with Facebook, POF, CPV/PPV, PPC, SEO, etc!
    Try Out Affiliit Now And See How Hundreds are Making Money Online!
    {{ DiscussionBoard.errors[1116449].message }}

Trending Topics