
13-10-2009, 17:32
|
|
|
|
חבר מתאריך: 22.11.07
הודעות: 131
|
|
כנראה לא הסברתי את עצמי טוב, את ה-target=_blank אני מכיר, אבל מצאתי את הפיתרון במקום אחר.
אבל תודה בכל אופן אחלה פורום...
זה התשובה שהייתי צריך:
However, some would like to submit their forms to a new window that they have a little more control over.
However, here is a way to submit a form to a new window, and have control over parameters like width, height, toolbar, etc.:
<form name=form1
method=post
action=whatever.asp
target=myNewWin>
<input type=hidden name=foo value='bar'>
<input type=button
value=' Submit '
onClick='sendme();'>
</form>
<script>
function sendme()
{
window.open("","myNewWin","width=500,height=300,toolbar=0");
var a = window.setTimeout("document.form1.submit();",500);
}
</script>
|