/    Sign up×
Community /Pin to ProfileBookmark

Auto launch full screen dun work properly

hi i have this code in my index.html file to launch itself in full screen:

<script language=”javascript” type=”text/javascript”
src=”j_script.js”></script>
<SCRIPT LANGUAGE=”JavaScript”>

if (this.name!=’fullscreen’){
window.open(location.href,’fullscreen’,’fullscreen,scrollbars’)
}

</script>

problem is, it launches anothe duplicate at the same time – 1 is in full screen and the other is within the normal browser window.

is there any way i can just launch index.html in full screen without calling another window?

arya

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorApr 14.2004 — Nope. To open a page in a full screen you must have had open it using a javascript method. Furthermore, if you don't specify another name for the window or if you open it in the same window(_self targeting) the fullscreen woun't work.

Note also that "fullscreen' attribute works for IE only.
×

Success!

Help @aryastark 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 6.15,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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