RE: [PHP] target="_blank"

From: Date: Mon, 14 Aug 2000 21:48:11 +0000
Subject: RE: [PHP] target="_blank"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-11692@lists.php.net to get a copy of this message
On Mon, 14 Aug 2000, Boget, Chris wrote: > > OK I'm playing with the 7 newest messages script that displays the 7th > > newest messages from this list right ! > > I can figure out how to make the links (to messages) open in > > new window? > > sounds simple but I guess you can't use target="" > > target="_blank" doesn't always work. I think it only works in NS > and not in IE (or vice versa). Try: > > target="_new" The target specifies a window name, so if you say target ="_new" it'll open a new window named _new and opens the URL in it. If you click on another link with target = "_new" and not close the previous window, the URL will open in the window. To ensure that each message will open in new windows so you can view several messages at the same time, specify unique name for each link. You can use a counter or the message id (if you have it), something like: echo '<A HREF="' . $your_url . '" target="_new' . $unique_id . '">' . $message_info . '</A>'; So each link will have a unique window name, and will open in a different window. -- Meir Kriheli MKsoft computer systems "There's someone in my head but it's not me" - Pink Floyd

« previous php.general (#11692) next »