--- Mark Mckee <[EMAIL PROTECTED]> wrote: > can anyone here help me with this little problem i cannot solve. i want > to open a link in an external window. the link is generated from > inputted information and called together to make the <a href>. how would > i get the following code to open the link in a new window rather than > itself? > > else $name = '<a href="http://'.$email_hp.'" > title="'.$hp_link.$email_hp.'">'.$name.'</a>'; > > if you need more info than that, mail me off list and i will send the > entire section of code. > > thanks in advance > > Mark... > http://www.soddengecko.com
One easy way is to use target="_blank" in your <a> tag. It does not rely on Javascript and its window.open() method. This can be a good thing but be advised that you have no real control over the window size and features when you use target like you can with JS. 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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
