问题见内~很简单,请问怎么实现?
这是代码:
<form name="article" method="post" action="add.asp">
<p> 标题:
<input type="text" name="textfield">
<br>
内容:
<textarea name="content"></textarea>
</p>
<p>
<input type="submit" name="Submit" value="提交">
<input type="button" name="preview" value="预览" onclick="document.article.action='per.asp';document.article.target='_blank';document.article.submit();document.article.action='add.asp';document.article.target='_self'">
</p>
</form>
我是想在点击预览按钮时,能弹出个可定义大小的窗口,是不是要用window.open函数,该怎么做?上面那段代码只能弹出普通窗口。