/    Sign up×
Community /Pin to ProfileBookmark

full screen

Hi I have 2 questions
1.I want to make my page go straight to full screen when someone logs on….
2.I want to add link that you can click on that closes the page when the surfer is finished with it….thanks

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@Mr_JAug 31.2003 — You could use


<A HREF="#null" onclick="window.open('yourpage.htm','','fullscreen');return false">Full Screen Link</A>


Then in the page opened in fullscreen include


<a href="#null" onclick="self.close()">Close window</a>
Copy linkTweet thisAlerts:
@taneauthorAug 31.2003 — thanks mr j - But i need the page to go to full screen when they type in the domain not when them come from a link....is there a waay of doing that....thanks
Copy linkTweet thisAlerts:
@Mr_JAug 31.2003 — Something like this maybe?


<script>

function full(){

where=document.f1.t1.value

window.open(where,'','fullscreen')

}

</script>

<form name="f1">

Enter URL <input name="t1" type="text">

<input type="button" value="Go" onclick="full()">

</form>
Copy linkTweet thisAlerts:
@David_HarrisonAug 31.2003 — A close window link cannot close a window that the user opened. So all you're going to get is a script that will open a fullscreen pop-up when the first page has finished loading, you can inlude a close window link in this pop-up but when it is closed the original page will still be visible.

<html><head><title>Opener Page</title>

<script type="text/javascript"><!--

function openwin(){

newwin=window.open("http://www.w3.org/","newwin","fullscreen");

}

//--></script>

</head><body onload="openwin();">

<p>You closed the window.</p>

</body></html>
Copy linkTweet thisAlerts:
@Mr_JSep 01.2003 — A close window link cannot close a window that the user opened[/QUOTE]

Well, you got me confused ?

?
Copy linkTweet thisAlerts:
@hammerslaneSep 01.2003 — [i]Originally posted by lavalamp [/i]

[B]A close window link cannot close a window that the user opened. [/QUOTE]
it can for me...



go to http://www.robdrum.co.uk - click anywhere on the page. a full screen thing pops up, then in the top right hand corner there's a little blue x image, which when you click it, closes the window that the user opened.



feel free to steal any code from that as you like... i know its not exactly what you're after... but i'm not a javascript expert.



l8rz
Copy linkTweet thisAlerts:
@David_HarrisonSep 01.2003 — The user didn't open that pop-up, you did with a js function. When I say a window that the user opened I mean one where the user double clicks their browser icon and opens a window.
×

Success!

Help @tane 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 5.2,
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,
)...