/    Sign up×
Community /Pin to ProfileBookmark

help printing an external file

how can i print an external file, using either
html, javascript, or css?

can i just use javascript, and write >
window.print(‘otherpage.html’);

i’ve tried different combinations, but i can’t
find any code that works.

any suggestions?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@fredmvFeb 13.2004 — Welcome to the forums.<script type="text/javascript">
//<![CDATA[
var w = window.open('foo.html');
w.print();
//]]>
</script>
Copy linkTweet thisAlerts:
@frankielucciniauthorFeb 16.2004 — thanks,

but what if i want to print a hidden window ?

in other words.....

print an external file, which is always a hidden window.
×

Success!

Help @frankieluccini spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 7.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @Nanditha,
tipped: article
amount: 1000 SATS,
)...