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 8047645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:10:12+00:00 2026-06-05T06:10:12+00:00

In my website www.theprinterdepo.com, you can view the page source, I have a code

  • 0

In my website http://www.theprinterdepo.com, you can view the page source, I have a code that my seo consulting suggested me to move to an external file.

Its an ecommerce site built on magento. ITs a free open source tool, so I did not developed it, I just installed it.

I need to know what the code does.

window.HDUSeed='c7025284683262a8eb81056c48968d74';
window.HDUSeedIntId = setInterval(function(){
    if (document.observe) {
        document.observe('dom:loaded', function(){
            for (var i = 0; i < document.forms.length; i++) {
                if (document.forms[i].getAttribute('action') &&  document.forms[i].getAttribute('action').match('contacts/index/post')) {
                    var el = document.createElement('input');
                    el.type = ('hidden');
                    el.name = 'hdu_seed';
                    el.value = window.HDUSeed;
                    document.forms[i].appendChild(el);
                }
            }
        });
        clearInterval(window.HDUSeedIntId)
    }
}, 100);
  • 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-05T06:10:14+00:00Added an answer on June 5, 2026 at 6:10 am

    In Brief

    This script calls a function at an interval of every 100ms or so (as it’s not guaranteed) to try to verify for the DOM’s load status to add a hook on it.

    If loaded, it then processes all the forms present in the page, looking for one with an “action” attribute (usually to submit it someplace, here contacts/index/post).

    To all such forms found, it adds a new hidden input element containing “seed” value, but we cannot tell you what it is used for without knowing more about the codebase.

    Detailed Code Review

    // seed value, purpose unknown
    window.HDUSeed='c7025284683262a8eb81056c48968d74';
    
    // invoke this function every 100ms
    //   see: https://developer.mozilla.org/en/DOM/window.setInterval
    window.HDUSeedIntId = setInterval(function(){
        // checks if document.observe method exists (added by the Prototype
        // JavaScript library, so we use this here to check its presence or
        // that it's been already loaded)
        if (document.observe) {
            // hook on load status (when the page's DOM has finished loading)
            //   see: http://www.prototypejs.org/api/document/observe
            document.observe('dom:loaded', function(){
                // process all forms contained within the page's context
                //   see: https://developer.mozilla.org/en/DOM/document.forms
                for (var i = 0; i < document.forms.length; i++) {
                    // only act on forms with the 'contacts/index/post/' action attribute
                    //   see: https://developer.mozilla.org/en/DOM/document.forms
                    //   and: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/match
                    if (document.forms[i].getAttribute('action') && 
                        document.forms[i].getAttribute('action').match('contacts/index/post')) {
                        // create an element...
                        //   see: https://developer.mozilla.org/en/DOM/document.createElement
                        var el = document.createElement('input');
                        el.type = ('hidden');              // ... that is hidden
                        el.name = 'hdu_seed';              // w/ name 'hdu_seed'
                        el.value = window.HDUSeed;         // and the seed value
                        document.forms[i].appendChild(el); // and add it to the end of the form
                    }
                }
            });
            // Remove the interval to not call this stub again,
            // as you've done what you want.
            // To do this, you call clearInterval with the ID of the
            // interval callback you created earlier.
            //   see: https://developer.mozilla.org/en/DOM/window.clearInterval
            clearInterval(window.HDUSeedIntId)
        }
    }, 100); // 100ms
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website www.askvioletnow.com. I added a flash mp3 player that plays a
I have a website (www.mydomain.com) that is secured with an SSL certificate. It is
Let's say we have a mobile-friendly website www.mywebsite.com that I want to quickly turn
On my company's website ( www.dmacorporation.com we have a section on the first page
On the homepage of my website - www.mobiuspc.com, I have some distinct sections that
On my website www.staygold-design.com I have a fixed nav bar that floats above all
I am building a website www.etutornetwork.com, in top menu I have included a link
On my website www.staygold-design.com I have a fancybox jquery script on a button under
I created a simple test page on my website www.xaisoft.com and it had no
I have a large website at www.mydomain.com. There are 1000 new documents per month

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.