educational

Setting New Window Properties

I received several emails last week in response to my Cluster of Consoles tutorial. Most echoed a similar theme, reflecting a desire to know more about how to specify a new window's (console) properties, a process which I will explore in detail below:

Using JavaScript to open a new window allows you to specify the new window's "properties." These properties not only include the size, shape, and position of the window, but whether or not the window displays toolbars, scrollbars, or a status bar; as well as several other features.

Many newbies frustrate themselves trying to alter their current window's properties by calling a "_top", "_parent", or "_self" tag with the "opener" code, but the unfortunate fact remains that a new window is required if you want it to assume specified properties.

If you want, you can learn much more about window properties from this tutorial, but for our purposes, window properties may be easily defined. For an example of relevant syntax, study the following event code:

window.open
('https://www.yoursite.com', '_blank',
'resizable=no,scrollbars=no,
toolbar=no,location=no,
directories=no,status=no,
menubar=no');

While the above statements appear on individual lines for clarity, for the script to be properly executed, these statements must appear as one continuous line of code.

All of the defined parameters are quite self-explanatory: First, window.open is the command to open a new window. The location (URL) of the new document is given, followed by the "name" of the window you wish to load this document into. This will usually be '_blank' to reference a new browser window. (Back Button Redirects are one exception, specifying '_self' in order to load the document into the current window. When doing this, you cannot specify other attributes; as your window retains its original configuration.)

Next follows the actual window properties. Specify either "yes" or "no" to make your selections. Setting everything to "no" makes for a typical "console window," but you may for instance wish to activate the status bar in order to show hyperlink OnMouseOver info.

Two additional parameters are height=XXX and width=XXX, with "XXX" being replaced by the desired value in pixels. These are useful if you know the actual dimensions of your document. This is not always as easy as it seems (unless you are using a set graphic size for a console), and can result in only a partial view of a document in a window without scrollbars!

The easiest way for you to evaluate how changing these basic options will affect the functionality and appearance of your console is through experimentation. Construct a simple web page to launch your consoles, and then see how modifying the various script parameters will change things. Test your code across as many browsers as possible, and find something that works for you. Don't be afraid to experiment with your scripts: you never know what you'll discover!

Copyright © 2025 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

What France's New Law Means for Age Verification Worldwide

When France implemented its Security and Regulation of the Digital Space (SREN) law on April 11, it marked a pivotal moment in the ongoing global debate surrounding online safety and access to adult content.

Corey D. Silverstein ·
opinion

From Tariffs to Trends: Staying Resilient in a Shaky Online Adult Market

Whenever I check in with clients these days, I encounter the same concerns. For many, business has not quite bounced back after the typical post-holiday-season slowdown. Instead, consumers have been holding back due to the economic uncertainty around the Trump administration’s new tariffs and their impact on prices.

Cathy Beardsley ·
opinion

Optimizing Payment Strategies for High Ticket Sales

Payment processing for more expensive items, such as those exceeding $1,000 per order, can create unique challenges. For adult businesses, those challenges are magnified. Increased fraud risk, elevated chargeback ratios and heavier scrutiny from banks and processors are only the beginning.

Jonathan Corona ·
profile

WIA Profile: Lexi Morin

Lexi Morin’s journey into the adult industry began with a Craigslist ad and a leap of faith. In 2011, fresh-faced and ambitious, she was scrolling through job ads on Craigslist when she stumbled upon a listing for an assistant makeup artist.

Women In Adult ·
profile

Still Rocking: The Hun Celebrates 30 Years in the Game

In the ever-changing landscape of adult entertainment, The Hun’s Yellow Pages stands out for its endurance. As one of the internet’s original fixtures, literally nearly as old as the web itself, The Hun has functioned as a living archive for online adult content, quietly maintaining its relevance with an interface that feels more nostalgic than flashy.

Jackie Backman ·
opinion

Digital Desires: AI's Emerging Role in Adult Entertainment

The adult industry has always been ahead of the curve when it comes to embracing new technology. From the early days of dial-up internet and grainy video clips to today’s polished social media platforms and streaming services, our industry has never been afraid to innovate. But now, artificial intelligence (AI) is shaking things up in ways that are exciting but also daunting.

Steve Lightspeed ·
opinion

More Than Money: Why Donating Time Matters for Nonprofits

The adult industry faces constant legal battles, societal stigma and workplace challenges. Fortunately, a number of nonprofit organizations work tirelessly to protect the rights and well-being of adult performers, producers and industry workers. When folks in the industry think about supporting these groups, donating money is naturally the first solution that comes to mind.

Corey D. Silverstein ·
opinion

Consent Guardrails: How to Protect Your Content Platform

The adult industry takes a strong and definite stance against the creation or publication of nonconsensual materials. Adult industry creators, producers, processors, banks and hosts all share a vested interest in ensuring that the recording and publication of sexually explicit content is supported by informed consent.

Lawrence G. Walters ·
opinion

Payment Systems: Facilitator vs. Gateway Explained

Understanding and selecting the right payment platform can be confusing for anyone. Recently, Segpay launched its payment gateway. Since then, we’ve received numerous questions about the difference between a payment facilitator and a payment gateway. Most merchants want to know which type of platform best meets their business needs.

Cathy Beardsley ·
opinion

Reinventing Intimacy: A Look at AI's Implications for Adult Platforms

The adult industry has long revolved around delivering pleasure and entertainment, but now it’s moving into new territory: intimacy, connection and emotional fulfillment. And AI companions are at the forefront of that shift.

Daniel Keating ·
Show More