Jump to content

Need help with "window.open"

- - - - -

  • Please log in to reply
3 replies to this topic

#1
mkjt88

mkjt88

    Newbie

  • Members
  • PipPip
  • 27 posts
I've been messing around with javascript for about a week now and just trying crazy little things to get better and this time I'm creating a fake blue screen for a buddy to open since he practically knows nothing about a computer and he won't know the difference from it being real or not. :)

Anyway here is my problem.. I about have it done but I was wondering if it was possible to use the window.open in some way to rid of the title, address bar, etc and make sure it was full screen. How I have it set up now you can see below.. is there a way to do it with how I started or do I need to change something and code it differently?

Now exactly what I want is to just try to rid of the scroll bar, address, title and all that good stuff to make it look like it's not in a browser and didn't know if I could tweak the window.open somehow to make it work for a current window. If you have any questions about what I mean just let me know I'll explain further, thanks.

<html>

<head>

	

<link rel="stylesheet" type="text/css" href="root.css">


	<script type="text/javascript">

 


prompt("Enter Number of Users","1"); 	

	warning();

function warning()

	{

		var warning=prompt("IQ TEST\n\t\nEnter Your Age\nSeparate Multiple Entries with a comma ','");

		alert("Loading Data..\nCould Not Load Document:\n\n\tClick 'Ok' When Finished");

		if (warning!==null && warning!=="");

			{

				alert("ERROR 107E\n\tHigh Computer Memory:\n\tStop Current Request");alert("ERROR 107E\n\tHigh Computer Memory:\n\tStop Current Request");alert("ERROR REPORT: Internal D: Col_VsPan23EI\n\tHigh Computer Memory:\n\tStop Current Request");

			

			}

			

	}


	</script>

	

</head>


<body bgcolor="blue">

	

<p>

A problem has been detected and Windows has been shut down to prevent damage to your computer.

	<br />

	<br />

	<br />

DRIVER_D: Col_VsPan23EI_LES_OR_EQUAL	

	<br />

	<br />

	<br />

Check to make sure any new hardware or software is properly installed. If this is a new installation ask your manufacturer for any updates you might need.

	<br />

	<br />

	<br />

If problems continue, disable or remove any newly installed hardware or software. Disable BIOS memory option such as caching or shadowing. If you need to use SafeMode to remove or disable components, restart your computer, Press Safe button, and advance to Safe Mode.

</p>

	<br />

	<br />

	<br />

	<br />

	<br />

	<br />

	

<h2>

Technical Information:

</h2>


<p>

	*** STOP: 0x00000000001 (0x0000000000.000002.000x000000.x0FCDA23DA)

	<br />

	<br />

*** CRASHDD.SYS - ADDRESS FCDA23DA BASE FCBAC000, DateStamp 36bb6d3c

	<br />

	<br />

	Beginning dump of physical memory

	<br />

	Dumping physical memory to disk:external 100

	<br />

	Physical memory dump complete.

	<br />

	Contact your system administrator or technical support group for further assistance.

	</p>


</body>

</html>


#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java

Quote

Is there a way to do it?
Short answer: No.

rather short answer:
The closest you can get is

var obj = new ActiveXObject("Wscript.shell"); 

obj.SendKeys("{F11}");

Which will work ONLY in IE.

#3
mkjt88

mkjt88

    Newbie

  • Members
  • PipPip
  • 27 posts
Alright I knew it would have to open a new window if anything but wasn't sure if it was possible or not. Thanks for the reply!

#4
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
You can control the size of a window with the arguments to the window.open() function, though to my knowledge you can't make it fullscreen. But remember that if a browser is set to block pop-ups, window.open() won't work.
Programming is a journey, not a destination.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users