> I am trying to start a weekly photo challenge using word press.
> Instead of a comment, I'd like photographers to leave a URL link to the photo they are
> submitting to the theme.
>
> My problem is, I'd like the link they leave to open in a new window, and I don't seem to know
> how to make that happen.
>
> Here is the site so far � http://www.uniqueexposures.com/challenge/
>
>
> Here is the comment section for this test theme we are doing �
> http://www.uniqueexposures.com/challenge/2006/05/25/memorial/#comments
>
> Any advice?
>
> Thanks
> Barb
The simplest way to make a link open a new browser window is to add the following to the <a> tag:
target="_blank"
The underscore and the spelling are important. I don't know if it is case sensitive.
The new window will be the default size for the browser. You don't have control over this unless
you use a _javascript_ window.open() method. The technique is different and it doesn't work at all
if _javascript_ is turned off in the browser. The target works without JS.
If you wanted every link on a page to open to a new window you could put the following in the
<head> portion of your HTML:
<base target="_blank" />
Of course, these aren't actually PHP questions.
James
_____
James D. Keeline
http://www.Keeline.com http://www.Keeline.com/articles
http://Stratemeyer.org http://www.Keeline.com/TSCollection
http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Spring Semester January-June 2006. Two new class topics.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
SPONSORED LINKS
| Php mysql | Job postings |
YAHOO! GROUPS LINKS
- Visit your group "php-list" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
