javascript - window.print() works on urls except one -


इन लिंक (iframe src) में अंतर क्या है? Window.print ()

  var myWindow = window.open ('', '', 'fullscreen = yes') पर काम करता है; MyWindow.document.write ("& lt; iframe src = \" http: //stackoverflow.com/questions/11447382/window-print-does-not-take-the-current-url \ "चौड़ाई = \" 100% \ "ऊंचाई = \" 100% \ "& gt; & lt; / iframe & gt;"); MyWindow.document.write ('& lt; iframe src = "' + url + '" width = "100%" height = "100%" & gt; & lt; / iframe & gt;'); myWindow.document.close (); myWindow.focus (); myWindow.print ();  

लेकिन

  myWindow.document.write ("& lt; iframe src = \" http: // localhost: 8080 / hiringsteps / docs पर कार्य नहीं करता है / केनथ _1340800082258 / केनथ _्रेस्यूम_1340800082258.pdf \ "width = \" 100% \ "height = \" 100% \ "& gt; & lt; / iframe & gt;);  

फ़ाइल पीडीएफ फाइल है, एचटीएमएल नहीं है।


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -