User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,899 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,577 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3726 | Replies: 3
Reply
Join Date: Jun 2006
Posts: 1
Reputation: tootytoot is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
tootytoot tootytoot is offline Offline
Newbie Poster

Help Full screen

  #1  
Jun 1st, 2006
Hi ppl,
i have a prob here. i'm trying to do a webpage and putting it in a cd for viewers to view. so i found the script below to open a full screen windows. it work! but the prob is that it opens two pages. one normal window and a full screen window. any ways to code it in order to get just one full screen windows? thanks in advance


<SCRIPT LANGUAGE="JavaScript">
if (this.name!='fullscreen'){
window.open(location.href,'fullscreen','fullscreen,scrollbars')
}
</script>
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: Dallas, TX
Posts: 481
Reputation: campkev is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Full screen

  #2  
Jun 1st, 2006
<SCRIPT LANGUAGE="JavaScript">
if (this.name!='fullscreen'){
window.open(location.href,'fullscreen','fullscreen,scrollbars')
window.close(this)
}
</script>
Reply With Quote  
Join Date: Jun 2006
Location: Arizona
Posts: 6
Reputation: John.Nye is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
John.Nye John.Nye is offline Offline
Newbie Poster

Re: Full screen

  #3  
Jun 2nd, 2006
The window close in the suggestion will require a confirm if the page was not opened by a script. An alternative is to obtain the screen size and to moveto and resize the window to be ful screen.
Reply With Quote  
Join Date: Feb 2006
Location: Arizona, USA
Posts: 11
Reputation: Darkmeerkat is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
Darkmeerkat's Avatar
Darkmeerkat Darkmeerkat is offline Offline
Newbie Poster

Re: Full screen

  #4  
Jun 2nd, 2006
Originally Posted by John.Nye
The window close in the suggestion will require a confirm if the page was not opened by a script. An alternative is to obtain the screen size and to moveto and resize the window to be ful screen.
That's in Internet Explorer; Firefox will refuse to close the window at all.
(And the "fullscreen" window Firefox generates will just be a normal size windows sans the top toolbars.)
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 7:28 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC