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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:49:53+00:00 2026-05-27T06:49:53+00:00

everyone. I don’t use jQuery. I create a script tag and append it to

  • 0

everyone.

I don’t use jQuery. I create a script tag and append it to head tag to get JSONP data. After JSONP callback function is executed, the script tag which is just added to head tag by me is automatically deleted by browser (Chrome). Why is the script tag deleted automatically by Chrome? I don’t write any codes to delete this script tag.

Thank you.

  • 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-05-27T06:49:54+00:00Added an answer on May 27, 2026 at 6:49 am

    It isn’t. The most common reason people think DOM changes aren’t being done is that they look at “view source” rather than the actual DOM panel. Be sure that when you’re looking for it, you’re looking at the “Elements” tab in the Dev Tools. “View source” shows you the original HTML delivered from the server, not the DOM and any modifications you may have made to it.

    If the element is really going away, there is code removing it. Chrome doesn’t arbitrarily remove script elements (proof). Some possibilities:

    1. Other code on the page is removing it.
    2. You’ve added it as a descendant element of something, and its parent (or ancestor) is being removed.
    3. You’ve added it as a descendant element of something, and then you’re updating that parent/ancestor element with new content, replacing its previous content (e.g., via innerHTML or similar).

    In 2 and 3 above, the code is removing the script element as a by-product of removing or updating its parent/ancestor.

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

Sidebar

Related Questions

i don't get why everyone is using Boy.prototype = new Human; to simulate inheritance.
What I don't understand about C/C++ is: Yes, everyone uses it to get blazingly
Everyone I work with is obsessed with the data-centric approach to enterprise development and
Everyone in my office uses Macs and therefore most use Safari. We have a
I don't understand how to use this feature called Build deployment package in VS
eHello everyone,the following is my code to display a jquery dialog window with a
Hey everyone, I'm basically new to programming. I've decided to try and get started
This will take a bit of explanation so I hope I don't lose everyone
everyone. I'm trying to use an a href link to onclick toggle unhide and
hello everyone i have a problem with my 3-tiers application i don't know how

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.