How to Post Music Blog

So You Want To Open A Window, Huh?

By Joe Burns

I can always tell when there is a new command that is in vogue. I start getting all kinds of email asking how to do it. Well, this is the new thing. I don't know why, but everyone wants to know how to create these little windows that pop up. All the Geocities pages have them. Other pages use them as control panels operating the main window.

If you decide to go with this kind of pop up window, use it sparingly. I think they become an annoyance after a while. Sort of like some guy telling you the same joke every time he meets you. It's fun about three times. Then you start yelling at the screen. I do at least. It really scares the cat.

But if you insist on doing one. Let's do it right! We'll start at the beginning.



--------------------------------------------------------------------------------


The Basic JavaScript Format

Oh yes! This is done through JavaScript. But it's a very simple JavaScript, so don't get worried so soon. Here's the basic format.



Heck, you can almost guess what each of the parts does. Since this is a script, you need the opening SCRIPT LANGUAGE="javascript" statement, and of course the /SCRIPT statement at the end. The are used to hide the text from older browsers that don't read JavaScript. You see, if you didn't have those in there, the text would display. This way it doesn't.
...but it's the stuff in the middle that that makes the magic.

window.open ('page.html') does just what it says. It opens a window (a new browser screen actually) and fills it with the page within the parentheses and single quotes. In the example above the HTML document that fills the window is called page.html.

Is that it?

Technically yes. That little script will work and open a new browser window and you'll get the effect. But wouldn't it be great if we actually had the ability to configure the window any way we wanted? You bet. Here's how.


Configuring The Window
Now we get to the commands I used on this page to get the little window effect. This is exactly what I have:


--------------------------------------------------------------------------------





(Get all on one line...no spaces)

How can I do more with links?

Note: These tips can be used when you are directly editing the HTML of a post or template. They won't work with the Link List widget of Layouts. 

 The HTML for a basic link looks like this: OUR FATHER WHO ART IN HEAVEN 

With this code, someone looking at your webpage will see the word or words you have as the TEXT. This text will be highlighted, and when clicked on, the browser window will go to the address specified by the URL. 

You can also create a link that people can use to email you. In the example above, just replace the http:// with mailto: and use your email address in place of the URL. It would looks something like this: Email me! 

Sometimes, you may want to link to another webpage, but have it open in a new browser window, leaving the original webpage open beneath it. To do this, you can just add target="_blank" to the link. This tells the browser to make a new, blank window for the link. The link would then look like this: OUR FATHER WHO ART IN HEAVEN 

If you decide you really want complete control over the new windows for your links, you can use JavaScript. Detailed instructions on how to do this can be found at HTML Goodies. Use these tricks with care, however, since it's easy to go overboard creating too many windows.

SOMEONE IS LISTENING

SOMEONE IS LISTENING
Express yourself

YOU ARE NOT ALONE

YOU ARE NOT ALONE
Who is watching you?