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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:46:04+00:00 2026-06-18T22:46:04+00:00

i have a problem printing an html page. Actually the structure i have is

  • 0

i have a problem printing an html page. Actually the structure i have is the following:
i have a html page cointaining several iframes. Each one of these iframes embeds an html page. What i need to do is to add inside the fraim “Main” a print link letting the user to print the iframe content.

I added inside the html of that specific iframe the following:

<a href="javascript:window.print()"><img src="./custom/images/print.png" /></a>

but i’m having several problems.
1) The main one is that the text inside this page is scrollable cause is dynamic and can be really long, so usually never fit the screen and the user needs to scroll to see the whole text. Right now, when i try to print the page what is printed is only the content of the iframe where i put the link (this is what i want even if is unexpected cause i never specify it) and only the visible part of the text, instead i want it all as a whole document. Also the scrollable bars are printed and i don’t know why. Is there something i need to add to print it all?

2) I have another not correct behaviour with safari that i don’t have with Chrome. Basically when i click the print button on Chrome a new layer is opened by the browser where a preview of the page is displayed loading the “print” css i created (this is really cool and is probably a Chrome feature). Instead with safari the preview is loaded directly inside the iframe, so what the content displayed to the user changes and usually it gets stuck on it. Do you know why i get this issue? For me is ok to not show any print preview, i just want the content in page not to be modified.

P.S. About point one i need to directly print the page, i cannot open a new window with a printable version if the page and then print the new one. This cause my page is dinamically generated with external “tool” api so let’s say i don’t have it out of this context.
I could have but i need to ask someone to create an API to do that and i could do it only if i was 100% sure this would fix the problem.

Thanks to everybody.

  • 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-18T22:46:06+00:00Added an answer on June 18, 2026 at 10:46 pm

    Honestly keep it simple!

    Have a link to a printable version under the ifram! So say you have your Iframe code

    <iframe>page2.php </iframe>
    <a href="page2.php">Print</a>
    

    This is a really comin work around which dosn’t look bad and most users will generally accept because its scene alot!

    Naturally page2.php in the iframe tag is just a representation,
    Im sure there is another way about it aswell but to me this would be the most simplistic!

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

Sidebar

Related Questions

I have a problem with printing of several html documents using java. I need
I have problem while loading data into html select when users press or click
I have problem with variable printing inside javascript. variable htmlString printing not working: document.write(htmlString)
I have a project which requires printing an HTML table with many rows. My
I want to print using php_printer.dll. I have no problem printing a simple text
I have a problem with printing maps Gmap V3. Printing is done by pressing
I have the following HTML markup : <a class=link1 href=javascript:load(0,1);>Click here</a><span class=loader></span> The load
I have the following problem. I'm working on a simple jQuery tooltip and now
I am mailing a HTML page as attachment. I have used <div style=page-break-after:always;> </div>
I have a very simple html page with a table element. The document is

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.