YNOT
  • Home
  • Industry News
    • Adult Business News
    • Adult Novelty News
    • YNOT Magazine
    • EU News
    • Opinions
    • Picture Galleries
  • PR Wire
    • Adult Company News
    • Adult Retail News
    • Adult Talent News
    • Adult Videos News
  • Podcasts
  • Industry Guides
    • Adult Affiliate Guide
    • Affiliate Marketing for Beginners
    • Top Adult Traffic Networks
    • Top Adult PR Agents
    • Funding an Adult Business
  • Business Directory
    • View Categories
    • View Listings
    • Submit Listing
  • Newsletters
  • Industry Events
    • Events Calendar
    • YNOT Cam Awards | Hollywood
    • YNOT Awards | Prague
    • YNOT Cammunity
    • YNOT Summit
    • YNOT Reunion
  • Login with YNOT ID
YNOT University: Educational articles and tutorials

A Console Cookbook – Part 2

Posted On 23 Jun 2000
By : admin

“One of the benefits of using JavaScript to open a new window is that you are able to specify the window’s properties”“One of the benefits of using JavaScript to open a new window is that you are able to specify the window’s properties”

After the first installment of A Console Cookbook, I received a lot of email from newbies wanting to know more about specifying window properties, a process which I will explore below:

One of the benefits of using JavaScript to open a new window is that you are able to specify that window’s “properties.” You can learn a lot 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
(‘http://www.yoursite.com’, ‘_blank’,
‘resizable=no,scrollbars=no,
toolbar=no,location=no,
directories=no,status=no,
menubar=no’);

Note that while these statements appear on multiple lines for clarity, to be properly executed, they must appear as one continuous line of code. All of the defined parameters are quite self-explanatory:

First,
window.open is the command to (obviously) open a new [document] window. The location 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 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; 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 best way for you to see how changing these options affects the appearance and functionality of your console is through experimentation. Set up a simple console page, and see how adding the toolbar or status bar, etc. changes things! Test your code across as many browsers as possible, and find something that works for you.

In my next installment, I’ll show you how to pop multiple windows and how to set up a back button re-direct, plus provide a few hints on maximizing console effectiveness…

Reader Comments on this Article:

Comment by:Summary:
StephenMore Code!
Shiprekdone of the best pull consoles…
MultimanConsole Sequence

  • google-share
Previous Story

Anatomy of a Makeover ­ Part 1: “Before”

Next Story

Another New Pay Site?

Leave a Reply Cancel reply

You must be logged in to post a comment.

Sponsor

YNOT Shoot Me

YNOTShootMe.com has exclusive pics from adult industry business events. Check it out!

YNOT Directory

  • Live Studio
    Webcam Studios
  • Skrill Online Payment System
    Third Party Billing (IPSPs)
  • NCrypted Technology
    Website Scripts
  • Premiere Listing

    Clickadu – Your trusted traffic souce

    More Details

RECENT

POPULAR

COMMENTS

Jasmine Sherni Guests on Holly Randall Unfiltered

Posted On 29 Aug 2025
Motorbunny Announces “Date Night Challenge” Sweepstakes

Motorbunny Announces “Date Night Challenge” Sweepstakes

Posted On 29 Aug 2025
Grooby Drops “Black-TGirls Jizz Jam #26”

Grooby Drops “Black-TGirls Jizz Jam #26”

Posted On 29 Aug 2025

Vanessa, Meet Vivid

Posted On 29 Sep 2014
Laila Mickelwaite and Exodus Cry

Laila Mickelwaite, Exodus Cry and their Crusade Against Porn

Posted On 03 May 2021

Someone puts Gal Gadot in one of your vids? Take it down!

Posted On 13 Dec 2017

Hoping viewers can also enjoy a spooky...

Posted On 24 Oct 2023

now a days these type of games will get...

Posted On 17 Jul 2023

good move from adent. these type of...

Posted On 06 Jul 2023

Sponsor

Sitemap
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy Policy