Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

current window

Status
Not open for further replies.

AppMan

IS-IT--Management
Sep 8, 2003
1
US
I'm writing an app for shopfloor data collection,

is there a way to make the current window fullscreen with no menu or toolbars? I would like to put it on the onload of the homepage so when they open the IE it would be less tempting for them to go to other intranet sites or close the app.

Thanks!
 
Well the initial page you cannot get rid of the toolbars, menus, statusbar, etc...
However, what you can do is: have a link on the Index page that opens another window with those specifications...
To do that, put this in the <head> section:

<script>
function openwindow(file,name,prefs) {
var wind = window.open(file,name,prefs);
}
</script>

And put this where the link is:

<a href=&quot;javascript:eek:penwindow('','window1','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=425,height=375')&quot;>Click me to open a new window.</a>

Now the bold parts of that script is where you define the width and height of the new window. The rest is self-explanatory...
There are other ways of doing this, this way will allow you to use the same function as numorous times...
Hope this helps ya...
[/color] I have not failed; I merely found 100,000 different ways of not succeding...
 
is there a way to make the current window fullscreen with no menu or toolbars?

yes/no
&quot;window fullscreen&quot; yes
use :
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);

&quot;with no menu or toolbars&quot;
no sorry
why ? cause the window is already created such 'options'
must be set at launch
* correct me someone if im wrong ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
NEVERSLEEP,

never tried it myself, but I've read of methods in NS that will allow modifying toolbars in existing windows, but only by signed scripts.


 

Hi,

Try it with the following snippet, it might be useful for u:-

<script>
function opwin(file,name) {
w1 = window.open(file,name,&quot;fullscreen=1&quot;);
}
</script>

best wishes,
mohan.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top