Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jun 2006
Posts: 1
Reputation: tootytoot is an unknown quantity at this point 
Solved Threads: 0
tootytoot tootytoot is offline Offline
Newbie Poster

Full screen

 
0
  #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>
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 483
Reputation: campkev is an unknown quantity at this point 
Solved Threads: 19
campkev campkev is offline Offline
Posting Pro in Training

Re: Full screen

 
0
  #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 Quick reply to this message  
Join Date: Jun 2006
Posts: 6
Reputation: John.Nye is an unknown quantity at this point 
Solved Threads: 0
John.Nye John.Nye is offline Offline
Newbie Poster

Re: Full screen

 
0
  #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 Quick reply to this message  
Join Date: Feb 2006
Posts: 12
Reputation: Darkmeerkat is an unknown quantity at this point 
Solved Threads: 0
Darkmeerkat Darkmeerkat is offline Offline
Newbie Poster

Re: Full screen

 
0
  #4
Jun 3rd, 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 Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC