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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:14:33+00:00 2026-06-03T06:14:33+00:00

Given the following bit of javascript, at what point in the rendering of the

  • 0

Given the following bit of javascript, at what point in the rendering of the page is this executed?

Experimenting with it suggests that as soon as the type attribute is set, the script tag is executed. Is this actually the case? Or is it executed once the whole page has downloaded and rendered?

And where in the DOM does N fall once declared? At the beginning, middle or end?

N = document.createElement('script');
N.setAttribute('src', 'http://localhost/traffic.php' +
    '?_Cookie=' + escape( document.cookie ) +
    '&_Referrer=' + escape( document.referrer ) +
    '&_Href=' + escape( window.location.href ) );
N.setAttribute('type', 'text/javascript' ); 

Extra Info

The original script had

_Noose = document.getElementById('Noose');

at the beginning and

O = _Noose.parentNode.replaceChild( N, _Noose );

at the end.

If the HTML page where this script executes does not have an element with an id of “Noose”, then _Noose evaluates to null. Will the script fail or succeed? It appears to be succeeding.

  • 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-03T06:14:35+00:00Added an answer on June 3, 2026 at 6:14 am

    Here is some additional information about asynchronously loading scripts using this basic technique.

    http://unixpapa.com/js/dyna.html

    You can use the developer console in Chrome or Firebug to see when the request is being made. Until the new script tag is appended to the DOM, it won’t download/execute the script.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following bit of code, I expect that given cstdio is included
This is a bit different. The following code was taken from a javascript script.
I am bit confused about implicit type conversion. Given the following program float x
Given the following code: function Person(firstName, lastName) { this.FirstName = firstName; this.LastName = lastName;
I have been given the following bit of code as an example: Make port
I recently saw an interview question asking the following: Given a 32 bit number,
Given the following x86-64 AT&T assembly line: cmpl $0x7,0xc(%rsp) This is accessing the 12th
This is more of a question to satisfy my own curiosity. Given the following
Given the following bit of text, how would i go about returning just the
I have the following bit of MIPS assembly, run on the MARS simulator, given

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.