Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
Table border missing windows.print javascript

Table border are missing while window.print in java script. this was my javascript code which i used for printing.

    var printContents = document.getElementById(divName).innerHTML;
    var originalContents = document.body.innerHTML;


    document.body.innerHTML = printContents;
    window.print();
    document.body.innerHTML = originalContents;
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your code will not output a border because you've not told it to. It's not exactly the same as your issue but this might help to answer your question: no border on HTML table when printing

You'll need to set some css like border:1px solid #000; to the table element to give it a border.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!