Opening New Windows

Opening new windows isn't that difficult. The questions is, what do you want to do with it? If you want to open one of your pages, or a page from another site, it's fairly simple to do this with images. Just right-click the image to Properties then the link tab, then type this in there -

mypage.html" target="first_window

Just change "mypage" to your page name, and that's all you need to do. This doesn't work in preview because of two things - the html extension doesn't work in preview, and preview doesn't support new windows. To get around both of these situations, write the link as .htm, the build the site in preview and check it out directly in your browser (see the Previewing Directly in your Browser page for details). To open an external site's page in a new window, just replace "mupage.html" with the complete site address. Here is an example of that -

http://www.swipesy.com" target="first_window

Now, if you want to open a new browser window with text, the procedure for setting the link will be a little different. It's similar to the procedure on the Targeting Text page. The procedure for placing a new window link on text is still pretty easy. Here's how to do that.

Go into the "My Links" gallery and add a new link. Enter a name, then use this method to add the link -

javascript://" onClick="window.open('Party.html')

Just change "Party" to your page name. For an external site's page, use a complete site address instead of "Party.html". In that case use the entire URL, beginning with "http://". Here is an example of that -

javascript://" onClick="window.open('http://www.swipesy.com')

In a nutshell, that's all it takes to open a new window with text. With Web Studio version 2, it's very easy to add and edit links, so don't be afraid to do a little experimentation.

Experimenting leads to learning different things, so go and do some experimenting!

That's it!

~ swipesy ~