/    Sign up×
Community /Pin to ProfileBookmark

landscape in FireFox Using javascript

Hi guys,

I am trying make Landscape as the default page orientation in my application.

We are using FireFox 3.6.

I have tried this one (using CSS);
Code:

<body style=”size:landscape”>

But this is not working…..Still i am getting the print in Portrait.

So i decided to use java script.

could somebody help me on this?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 10.2010 — [CODE]<style type="text/css">
@page {
size: landscape;
}</style>
[/CODE]
Not supported in all browsers
Copy linkTweet thisAlerts:
@subbukumararajaauthorSep 10.2010 — Hi Friend

I have tried that also and that didnt' work.

that's why i thought of doing that in JavaScript.

Could you please provide some java script to achieve that in FireFox?
Copy linkTweet thisAlerts:
@FangSep 11.2010 — Brings up the print preview window[CODE]window.print()[/CODE]
×

Success!

Help @subbukumararaja 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 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

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