<A HREF="nextpage.htm">Click here</A>
Yes, now you can open that new window without using the grey button. Here is a script to give you the new window:
First, I found that this works much better if you create your own function in the head section first. All this function needs to do is open your new window. So, in your head section, create a function like this:
The above script will open my "jex5.htm" page in a new window. As you know, replace this with url of the page you wish to open, and adjust the other attributes to your liking. If you need to know more about the window.open function, see the Opening a New Window tutorial and learn that first.....then come back and get going with the rest of this section.
Now go into your body section to wherever you want the link to appear, and write your link tag this way:
Now you will get a link like the one below. Give it a try and see the new window appear when you click the link!
Now you can click on the image below for a new window!
The second way to do this is a little more difficult, but some people may be more comfortable with it. The trick is to go ahead and use the onClick=" " attribute in your link tag. The trick here is to keep the browser from following the actual link after running your script. Here is a sample of using the onClick attribute in the link tag:
<A HREF="newpage.htm" onClick="newwindow();return false">Click Here!</A>
I used the same script we had written in the head section for the first method, but I used it inside the onClick=" " command. Also notice the semicolon after the function call, and the "return false" at the end of the command. The return false part keeps the browser from going to "newpage.htm" after opening your new window. You could put any page here you want, and the link will no longer take you there (except in some older browsers). So you don't really have to put an actual url in the HREF attribute here unless you wish to offer an alternative for those with older browsers that don't recognize the onClick=" " command. As in the above example, you can also use an image inside your link tag to make a clickable image. Below is an example link where I used this second method:
Well, that about does it for now......The next section is a
||By: John Pollock||