/    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);

<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

3 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 10.2010 — [CODE]<style type="text/css">
@page {
size: landscape;
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]


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

tipper: @Mqlinka19,
tipped: live stream
amount: 4900 SATS,

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