Try this
<a href="http://google.com/" onclick="window.open(this.href); return false;"> A Test Link </a> It achieves your objective of opening a new window, but it also: * Preserves the href element for Search Engines * Users who want control can still right-click * The link can still be Bookmarked or added to the browser Favorites * Your code will validate Robin Take control of your website - ask me today about Xsite-tomorrows Content Management System CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Price Sent: Monday, 13 November 2006 6:58 a.m. To: [email protected] Subject: [WSG] Replacing target attribute in form Hi I have a little online store paying through Paypal, using their shopping cart. So the buy button opens up a new window and you're into Paypal. Unfortunately the bit of html for the form uses 'target' to open up the window and I'm coding in xhtml strict. I'm using onclick="newWindow() return false" for opening new windows. I'm looking for a simple bit of javascript to do the same for the form, something like form.target = window.open() Any ideas? Kind Regards -- Chris Price Choctaw [EMAIL PROTECTED] http://www.choctaw.co.uk Tel. 01524 825 245 Mob. 0777 451 4488 Beauty is in the eye of the beholder while excellence is in the hand of the professional ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -+- Sent on behalf of Choctaw Media Ltd -+- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The information in the email (including any attachments) is confidential and intended solely for the use of the individual to whom it is addressed. Access to this email by anyone else is unauthorized. Any views or opinions presented are solely those of the author and do not necessarily represent those of Choctaw Media Ltd. If you have received this email in error be advised that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. Please notify the sender and please delete the message from your system immediately. ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ******************************************************************* ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
