Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7778563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:25:48+00:00 2026-06-01T18:25:48+00:00

I have to fire a doublelclick floodlight tag when a user clicks on the

  • 0

I have to fire a doublelclick floodlight tag when a user clicks on the facebook button on the company website. The problem is the whole website is built out of umbraco with widgets like “andthis” bolted on which makes adding functional tags difficult.

I plan to use this code below so when a user clicks on the div tag that contains the “share to social media” buttons it will fire the tag, however in testing it doesn’t just fire the tag it trys to carry the user away. What am I doing wrong? I just want to load the tag when the user clicks, I don’t want to actually leave the page they are currently on.

<div id="buttonsContainer">
  <p>Click or double click here.</p>
</div>

<script>
    $("#buttonsContainer").click(function () {

var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=36705;type=count134;cat=faceb540;ord=1;num=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
});
</script>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:25:49+00:00Added an answer on June 1, 2026 at 6:25 pm

    It’s reloading the page when the user clicks because you are using a document.write, which reopens the stream to write the page out. You’ll want to use something like $(‘buttonsContainer’).append(”); to place the iframe into the buttonsContainer element.

    For example:

    <div id="buttonsContainer">
      <p>Click or double click here.</p>
    </div>
    
    <script>
        $('#buttonsContainer').click(function () {
            var axel = Math.random() + '';
            var a = axel * 10000000000000;
            $(this).append('<iframe src="http://fls.doubleclick.net/activityi;src=36705;type=count134;cat=faceb540;ord=1;num=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to have a textarea fire an event if the user
I'm developing a website using PHP+Ajax. I have to fire a ajax request that
I have a Button and I need to fire it's Click event externally from
I have a UILocalNotification that is supposed to fire once a day, Monday through
I have a periodically_call_remote that I want to fire right away (as if the
I have a very simply subclass of UIButton that will fire off a custom
i have 2 divs next to each other i want mouseleave to fire when
I have several sql queries that I simply want to fire at the database.
I would like to have a Windows 2003 server fire a script to fire
I want to have a generic event that I can fire that will take

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.