Java tricks
Javascript
Fravia's Javascript pages

Elementary tricks: 1.1:
Popup pages galore and some stalking elements

I will demonstrate and explain you how to create elementary simple "pop up windows" using Javascript.
You will be able to 'see' what happens, and to 'see' the Javascript code behind it.
For reference and further work, you may print this page as it is, or explore its (real) source code, or save this page as a file clicking this redundant link with the shift button pressed.
Act as you like: either way you'll get all you need to repeat this kind of trick on your own pages.
As you will be able to read below, some of this elementary tricks can also be used for stalking (or anti-stalking :-) purposes
Creating a pop-up window

The example popup window fravipop.htm will be created when you click the link below.
Yessir, I want to create a redpopup page!

How d'you do it?
I have inserted following text inside the <HEAD> of this page: <SCRIPT LANGUAGE="JavaScript"> function fravipop() { Fraviawin = window.open("fravipop.htm", "FraviaWIN", "status=no, toolbar=no, location=no, menu=no, width=100, height=100"); } </SCRIPT> And I have created a NEW page (in this case "fravipop.htm") with following text in its <BODY>: <form name="form1"> <INPUT TYPE="button" value="OkyDoky" onClick="window.close();"> </form> And I have called the new page, from THIS page, with following code: Yessir, I want to create a <a href="#" onClick="fravipop();">popup page!</A> Some explanations:
The fravipop() function was defined in the header of this page. It includes the command to create the new window, specifying fravipop.htm as the document to be loaded. The window attributes are set to turn off the status line, menu bar, toolbar and other features, and set the window size.
The window object has a variety of properties, like name, that specify information about the window and its components. The window object includes a variety of methods as well. These enable you to perform window-related functions: opening, closing and manipulating windows (and displaying dialog boxes).
The window.open() method enables you to open a NEW browser window. A typical statement to open a new window looks like:

WindowName=window.open("URL", "WindowName", "Feature List");
The first parameter is an URL, wich will be loaded into the new window, this can of course be a "real" complete URl, or a page that you have prepared.
In the feature list you can have many little things like "resizable", "scrollbars" etcetera.
Experiment a little and enjoy!
Why did I put "#" inside the link? To avoid sending the user to a real destination. In fact the actual work is done by the event handler, which calls my fravipop() function!
This trick can ALWAYS be used to 'fool' people browsing your pages. Most web travellers don't check links, and just click everything in sight like mad jesters, a trend encouraged by the windows abomination we are all condamned to live in :-(
Imagine adding on one of your pages a bogus "link" like:

Hey! Click here to get any tits/religion/warez you need!
So you see, there is a possible 'stalking' use even for this kind of simple 'popupping' tricks, and the redirection '#' can do the job (at times :-)
Well, I reckon that's enough for this lesson.

(c) Fravia+ December 1997. All rights reserved.
You are deep inside Fravia's page of reverse engineering, choose your way out:

Javascript
Fravia's Javascript pages

redhomepage redlinks redanonymity red+ORC redstudents' essays redacademy database
redtools redcocktails redantismut CGI-scripts redsearch_forms redmail_Fravia
redIs reverse engineering legal?