View Single Post
  #4 (permalink)  
Old 07-19-2007, 04:09 PM
curtiss's Avatar
curtiss curtiss is offline
Moderator
 
Join Date: May 2003
Posts: 1,468
The target is just an arbitrary name you can assign to the window that will open. By giving the window a name, you can set up your links so that all of your "pop-up" links open in the same window, rather than creating multiple new windows.

"this.href" and "this.target" have to stay exactly as they are. "this.href" tells the browser that you want the link to direct the user to the URL listed in the "href" portion of the link. "this.target" tells the browser that you want the link to open in the window specified in the "target" portion of the link.

Basically, "this" is a way of telling javascript to find the attributes within the tag that's calling that javascript.

"My link" can be anything you want it to be. That's the text of the link that will open the window.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote