Is it possible to do a POST from just an <a> tag? I know anchor tags are usually just for GETs, and I know I can use javascript to do this (like in JavaScript post request like a form submit) but to me that seems a little messy. Is there a way to do this with straight HTML?
Is it possible to do a POST from just an <a> tag? I know
Share
There is no way to
POSTanaelement using only HTML.As can be seen from this DTD fragment (HTML 4.01 spec):
There is no attribute that controls whether to use
POSTorGETwith anaelement.You have to script it, if you want to abuse the semantics.