[4198] in WWW Security List Archive
Re: Netscape question
daemon@ATHENA.MIT.EDU (osiris@pacificnet.net)
Thu Jan 30 05:57:12 1997
From: osiris@pacificnet.net
Date: Thu, 30 Jan 1997 01:20:04 -0800
To: jgray <grayjr@cs.purdue.edu>
CC: www-security@ns2.rutgers.edu
Errors-To: owner-www-security@ns2.rutgers.edu
jgray wrote:
>
> I was browsing around and found a page that took away the toolbar and menu
> options in netscape to hide the source for the page. I was wondering if
> anyone could tell me how it is done or where i can find out about it. Thanks!
>
> Josh Gray
> grayjr@cs.purdue.edu
It's a Javascript thing, parameters specified in the creation of the
window. Clip and paste this to a text editor and name the file
whatever.html. Load it into Netscape and click the button. When you
arrive at a site like that, they have simply used on OnLoad call to draw
the page without toolbars. It's nonsense, though and hides nothing. You
can force it into the cache and read it/save it/view it there.
<html>
<head>
<script language = "javascript">
function winopen () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=310,height=225");
msg.document.write("<HEAD><TITLE>A Window Without
Controls!</TITLE></HEAD><BODY BGCOLOR = #FFFFFF></BODY>");
msg.document.write("<h5><font face = arial, helvetica><center>About This
Window</center></font></h5><p><font size = -1 face = arial,
helvetica>This window was generated using the NewWindow function, which
allows the user to specify many different options. As you can see if you
examine the code of the original call - msg=open() - the paramters
determine the toolbar, location, directories, status bar, menu bar and
so on..</p><br><center><form><input type=button value = ' Okay '
OnClick = window.close()></center></form>");
}
//JavaScript Ends --></SCRIPT>
</head>
<form>
<input type = "button" value = "Click Me" OnClick =
'winopen(this.form)'>
</form>
</html>