So, I have two submit buttons with different values, and one should open a new tab on submit (for a preview), the other should not.
How could this be achieved? With JS or something?
(I'm using Razor.)
只需在按钮上添加formtarget="_blank"
的属性即可。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.