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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:07:16+00:00 2026-05-17T16:07:16+00:00

How to put the iframe/div using javascript next/before the <script> block, just like google

  • 0

How to put the iframe/div using javascript next/before the <script> block, just like google ads. So I am putting a script tag in an html and I want an iframe to appear at the same location in the rendered HTML.

<script>
    // do something to add an iframe/div so that it appears on page 
    // as if it were added in place of script
<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-05-17T16:07:16+00:00Added an answer on May 17, 2026 at 4:07 pm

    Use document write:

    document.write('<iframe src="url"></iframe>');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to put div elements right next to each other. The problem is,
I have an iframe on my site, in the iframe I put a button
How can I put Intel asm code into my c++ application? I'm using Dev-C++.
I want to put a button as the text of an @ActionLink() but I
I've put in my page's header the following <link rel=image_src href=http://fractalsoft.s3.amazonaws.com/sfondo.jp2 /> but the
I have put magento inside a drupal installation in a subdirectory called store. When
I'm attempting to put a bare git repository on a ubuntu server running on
i am trying to put some word in tempfile via commandline temp file creat
Is it ok to put a link and an image inside an h1? SEO
Possible Duplicate: file_put_contents permission denied I have recently transferred server, and it seems that

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.