Código :
<div id="register"><input type="image" src="http://www.news-world-cup.com/images/iframe_buttons/world_cup_button.png" onClick="return validate(form)" tabindex="3" id="Register"/></div>
Y lo que quiero es simplemente añadirle que cuando se clicke se vaya a web en blank.
He probado a incluir esto:
Código :
onclick="MM_goToURL('parent','http://www.switchfire.net/banners/worldcup/confirmation/confirmation.html');return document.MM_returnValue"
sin embargo no funciona.
El codigo completo de la pagina es ( por si lo necesitan ) :
Código :
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title><xsl:value-of select="/mobilemediasite/title" /></title> <link rel="stylesheet" type="text/css"> <xsl:attribute name="href"><xsl:value-of select="/mobilemediasite/cssstyle/@src" /></xsl:attribute> </link> <script type='text/javascript'> function validate(form) { var mobilePrefix = document.userform.phone.value.substring(0,4); var mobilelength = document.userform.phone.value.length; var mobile = document.userform.phone.value; var pattern = new RegExp("^(((44\\s?\\d{4}|\\+44\\s?\\d{4}|0\\d{4})\\s?\\d{3}\\s?\\d{3})|((44\\s?\\d{3}|\\+44\\s?\\d{3}|0\\d{3})\\s?\\d{3}\\s?\\d{4})|((44\\s?\\d{2}|\\+44\\s?\\d{2}|0\\d{2})\\s?\\d{4}\\s?\\d{4}))(\\s?\\#(\\d{4}|\\d{3}))?$"); if (document.userform.phone.value == '') { alert("Please enter Phone Number"); document.userform.phone.focus(); return false; } if (mobilelength != 11 ) { if(mobilelength != 12) { alert("Please enter a valid Phone Number"); document.userform.phone.focus(); return false; } } if (isNaN(mobile)) { alert("Please enter a correct Phone Number"); document.userform.phone.focus(); return false; } if(mobile.match(pattern)) { if (mobile.substring(0,1)== 0){ document.userform.phone.value = "44"+document.userform.phone.value.substring(1); } } else { alert ("Please enter a valid Phone Number"); document.userform.phone.focus(); return false; } return document.userform.submit(); } </script> </head> <body> <div id="iframe-worlcup"> <div id="signup"><img src="http://www.news-world-cup.com/images/iframe_buttons/world_cup_signup_title.png" alt="signup"/></div> <div id="objeto"><img src="http://www.news-world-cup.com/images/iframe_buttons/world_cup_your_team_title.png" alt="team"/></div> <form method="post" name="userform" onSubmit="return formSubmit()" id="mobile_signup"> <xsl:attribute name="action">genericRegistration.action?svc=<xsl:value-of select="/mobilemediasite/textareas/service" />&sid=<xsl:value-of select="/mobilemediasite/params/siteId" />&keyID=<xsl:value-of select="/mobilemediasite/params/keyId" />&kid=<xsl:value-of select="/mobilemediasite/params/keyId" />&uid=1977</xsl:attribute> <input type="hidden" name="keyid"> <xsl:attribute name="value"> <xsl:value-of select="/mobilemediasite/params/keyId" /> </xsl:attribute> </input> <div id="objeto"><select name="teamname" id="team" class="list"> <option>England</option> <option>Algeria</option> <option>Argentina</option> <option>Australia</option> <option>Brazil</option> <option>Cameroon</option> <option>Chile</option> <option>Denmark</option> <option>France</option> <option>Germany</option> <option>Ghana</option> <option>Greece</option> <option>Holland</option> <option>Honduras</option> <option>Italy</option> <option>Ivory Coast</option> <option>Japan</option> <option>Mexico</option> <option>New Zealand</option> <option>Nigeria</option> <option>North Korea</option> <option>Paraguay</option> <option>Portugal</option> <option>Serbia</option> <option>Slovakia</option> <option>Slovenia</option> <option>South Africa</option> <option>South Korea</option> <option>Spain</option> <option>Switzerland</option> <option>Uruguay</option> <option>USA</option> </select> </div> <div id="objeto"><img src="http://www.news-world-cup.com/images/iframe_buttons/world_cup_mobile_title.png" alt="mobile"/></div> <div id="objeto"> <input name="phone" type="text" id="mobile_number" value="" class="form2" size="11" tabindex="2"/> </div> <div id="register"><input type="image" src="http://www.news-world-cup.com/images/iframe_buttons/world_cup_button.png" onClick="return validate(form)" tabindex="3" id="Register"/></div> <div class="textoIframe" id="textoIframe"> <div align="justify" class="textoIframe"> <div align="center"> Subscription service for 16+ only, 5 alerts Free then just 25p per sms alert . Unsubscribe at any time by sending stop to 83700. By entering your mobile number you also agree to receive a promotional messages for our World Cup Competition service Click <a href="http://www.sportsalerts365.com/competitions.html" class="here" target="_parent" title="competition">here</a> for full T&Cs. One PS3 + FIFA game will be won after the Final. Just Reply to this promotional message + answer the question to be in with a chance of Winning. </div> </div> </div> </form> </div> </body> </html> </xsl:template> </xsl:stylesheet>
Espero que me puedan ayudar los grandes genios de este foro.
Muchas gracias de antemano!!