Friday, February 23, 2024
 Popular · Latest · Hot · Upcoming
rated 0 times [  49] [ 2]  / answers: 1 / hits: 15788  / 9 Years ago, mon, may 11, 2015, 12:00:00

I created a simple link to print a page I created. I'm using Google Chrome. But that link is not working. When I checked my console log, I'm getting this message when I click the link:

Maximum call stack size exceeded

Here's the HTML I'm using to create the print:

<a href=javascript:window.print();>Print page</a>

Thanks for the help!

More From » html


I found the solution. It was pretty dumb.

I had two links on a different page to print the page. For one link I was using a function to print the page onclick=PrintMe(). The other link was the above snippet. <a href=javascript:window.print();>Print me</a>.

It seems these two were fighting eachother. That's what the error means.

Thanks though!

[#66646] Friday, May 8, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 117
Total Questions: 116
Total Answers: 116

Location: Bangladesh
Member since Sat, Jan 23, 2021
3 Years ago
maxinec questions