dialog box | advertising | browser | Web page
A JavaScript class that forces pop-up windows: Forcewindow
A pop-up window that can not be intercepted by an ad interceptor
The ForceWindow.iclass.js code is as follows (use, explain, explain all in the comments):
------------------------------------------------------------------------------------
/**
* =========================================================================
* This procedure is free to copy, modify, disseminate, and shall not delete the following information. Used for commercial use subject to the consent of the original author.
* =========================================================================
* Program Name: Forcewindow (@iClass. JS)
* Description: "BREAKING" ad interception software, forcing pop-up windows.
* Version: 1.0.0
* Date Created: January 19, 2004
* Modified Date: January 19, 2004
* File name: ForceWindow.iclass.js
* Author: Zhongzhong
* Email Address: zz@iecn.net zz315@163.com
* Copyright Notice: This procedure belongs to Iclass.js, copyright is owned by the author.
* For details of the IClass project: http://www.iecn.net/forum/showthread.php?threadid=14811
* =========================================================================
*/
/**
* Define Forcewindow class constructors
* No parameters
* No return value
*/
function Forcewindow ()
{
THIS.R = document.documentelement;
THIS.F = document.createelement ("FORM");
This.f.target = "_blank";
This.f.method = "POST";
This.r.insertbefore (THIS.F, this.r.childnodes[0]);
}
/**
* Define Open method
* Parameter sURL: string, to open the URL of the window.
* No return value
*/
ForceWindow.prototype.open = function (sURL)
{
This.f.action = sURL;
This.f.submit ();
}
/**
* Instantiate a Forcewindow object and act as a child object of the Window object to facilitate the invocation of the
* This can be used after the definition: Window.force.open ("URL");
*/
Window.force = new Forcewindow ();
/**
* Use this program pop-up window will not be intercepted by the ad interception software, but there is a disadvantage: you can not like the Window.Open pop-up window to customize the appearance.
* You can, of course, instantiate a Forcewindow object before using it:
* var Mywindow = new Forcewindow ();
* To use this:
* Mywindow.open ("URL");
* This program test through the browser: IE 5+, Firefox 1.0, Mozilla 1.7.5, Netscape 7.2, Opera 7.23
* Tips: If you use this program to force pop-up ads, please think more about the feelings of visitors!
*/
------------------------------------------------------------------------------------