SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Can't stop routine.
Hybrid View
-
Jun 28, 2001, 09:07 #1
- Join Date
- Jun 2001
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Can't stop routine.
I want to be able to open Netscape & Explorer in full screen mode.
I have been trying to use the script and link below by putting the link into the <Body> as an onLoad (<BODY bgcolor="#ffffff" TOPMARGIN=100 onLoad="javascript:void(0);fullScreen('demo1.htm')">
; however, it just keeps running opening mulitple windows and I have to use Esc and then back out of it with Ctrl-Alt-Del.
<!-- Begin
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}
// End -->
</script>
</HEAD>
<BODY bgcolor="#ffffff" TOPMARGIN=100 >
<a href="javascript:void(0);fullScreen('demo1.htm')"> click </a>
Your help would be greatly appreciated.
Thanks.
Bruce Brown
Anacortes, WA
-
Jun 29, 2001, 01:16 #2
- Join Date
- May 2001
- Location
- Australia
- Posts
- 54
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm not sure I completely understand what you're tyring to do, but it seems like the problem is that the command to open the page in a fullscreen window is in the <body OnLoad> section. So the procedure repeats itself each time it loads a new version of demo1.htm. Perhaps a solution would be to have TWO pages. The first one (redirect.htm say) would be an almost empty page, just having the function fullScreen() in the <head> and the tag:
<body onLoad="java script:void(0);fullScreen('somepage.htm')">
with the page somepage.htm being the one containing the content which you want to be opened in full screen mode.Last edited by slp; Jun 29, 2001 at 01:18.
Visit http://astroguitar.cjb.net!
-
Jun 30, 2001, 15:13 #3
- Join Date
- Sep 1999
- Location
- Houston TX
- Posts
- 414
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It looks like you are trying to make this happen when a user visits your site or page. If that is the case, I just wanted to let you know that many many people will find that quite annoying because it makes them feel like you are controlling their computer and they have trouble getting the window to close unless they have some knowledge of keyboard shortcuts. I just wanted to make sure you were aware of that.
-
Jun 30, 2001, 18:08 #4
- Join Date
- Jun 2001
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, I am aware of that, but I hope to produce an application with which it won't be a problem.
Can you help?
Thanks.
Bruce
Bookmarks