Helli, I want to open any link in this page, in new window. but i wantn't open in new windows when click on Send button. first i use this tag in head: <base target="_blank"> Code (markup): and use this tag for send Button: target="_self" Code (markup): but it dosn't work. when i click on Send Button, open a new windows. Please help. this is my code and page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>.:: One Kaveh ::.</title> <link rel="stylesheet" href="main.css" type="text/css" /> <base target="_blank"> </head> <body> <div id="banner-commentspop"> </div> <div class="blog" style="direction:rtl"> <div class="comments-body"> <form method="post" action="http://www.kaveh.ir/cgi-bin/mt/mt-comments.cgi" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)" style="padding: 5px 5px 0 0"> <input type="hidden" name="static" value="1" /> <input type="hidden" name="entry_id" value="1974" /> <div style="width:180px; float:right; text-align:right; padding-right: 1px"> <label for="author">name:</label><br /><input tabindex="1" id="author" name="author" /><br /><br /> <label for="email">email:</label><br /><input tabindex="2" id="email" name="email" /><br /><br /> <label for="url">addresse::</label><br /><input tabindex="3" id="url" name="url" /><br /><br /></div> <br /><br /><br /><br />save?<br /> <input type="radio" id="bakecookie" name="bakecookie" /><label for="bakecookie">yes</label><input type="radio" id="forget" name="bakecookie" onclick="forgetMe(this.form)" value="Forget Info" style="margin-right: 15px;" /><label for="forget">no</label><br style="clear: both" /> <label for="text">message:</label><br /><textarea tabindex="4" id="text" name="text" rows="10" cols="57" onkeypress="return convert(name,event)"></textarea><br /><br /> <input target="_self" style="font-weight: bold; color: #000080" type="submit" name="post" value=" send " /> <input type="reset" value=" reset " style="color: #000080" /> </form> </div> </div> </body> </html> Code (markup):
Put target="_self" in the <form> tag, not the <input> tag. <form target="_self" method="post" action="http://www.kaveh.ir/cgi-bin/mt/mt-comments.cgi" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)" style="padding: 5px 5px 0 0"> Code (markup):