/    Sign up×
Community /Pin to ProfileBookmark

fullscreen and close in one link?

I’m using basic fullscreen and close window scripts with text links. It works fine, but I’m wondering if the open and closing can somehow be combined into this same link?

Can a single link call the page to open in a fullscreen window, then when clicked on that page cause it to close?

Linda
————————

placed in external js…

<!–
function fullScreen(theURL) {
window.open(theURL, ”, ‘fullscreen=yes, scrollbars=auto’);
}
// –>

placed in page…

<a href=”javascript:void(0);” onClick=”fullScreen(‘pagename.htm’);”>Full Screen</a>

<a href=”javascript:window.close();”>Close Window</a>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @lbrowne 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.16,
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,
)...