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

  • Home
  • SEARCH
  • 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 494617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:30:47+00:00 2026-05-13T05:30:47+00:00

I opened a javaScript file in a javaScript time…. document.write(<script src=’newnote.js’ type=’text/javascript’></script>); is there

  • 0

I opened a javaScript file in a javaScript time….

document.write("<script src='newnote.js' type='text/javascript'></script>");

is there an other way to load the js in js code..?

(this file is for loading a popup menu js code , which is loaded after delay by clock js code … so i want an othe way to loaded it)

  • 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-13T05:30:47+00:00Added an answer on May 13, 2026 at 5:30 am

    Is it possible that the script that you are adding to the page (in this case newnote.js) is causing the error you are experiencing?

    Instead of the line you used starting with document.write use this instead:

    var newnote = document.createElement('script');
    newnote.src = "newnote.js";
    newnote.type = "text/javascript";
    document.documentElement.firstChild.appendChild( newnote );
    

    If you still get your quotes error, then the code inside of newnote.js is messed up.

    Don’t think this was really what you were asking, but if you used the code I listed above you could then remove this file from your page by calling this:

    document.documentElement.firstChild.removeChild( newnote );
    

    One more thought:

    If your path to newnote.js is not correct (because it is not in the same directory as the calling page) then the server would return a 404 error page instead of the file. If your browser tried to execute it like javascript, it could throw an error. Try supplying the full URL: http://yoursite.com/js/newnote.js or a root relative one: /js/newnote.js

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

Sidebar

Related Questions

BEFORE CHAOS I used to have this one... at the head part <script type=text/javascript>$(function()
I have this infoflyout.ascx <%@ Control Language=C# Inherits=System.Web.Mvc.ViewUserControl<dynamic> %> <script type=text/javascript> $(document).ready(function () {
I opened up my compiled Hello World Obj-C application in a text editor and,
When sockets are created or files are opened/created in C, is the file descriptor
When loaded a shared library is opened via the function dlopen() , is there
I am trying to run a .exe file from Javascript. This is what I
I would like to autoload a local javascript file, everytime a new page/tab is
I am having the following HTML file protected through JavaScript. It works fine with
Let's say we have this code: <form action='' method='POST' enctype='multipart/form-data'> <input type='file' name='userFile'><br> <input
Using Javascript is it possible to listen for browser's file open/save dialog box event.

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.