JS Reference

JS by Category JS by Alphabet

JavaScript

JS Array JS Boolean JS Classes JS Date JS Error JS Global JS JSON JS Math JS Number JS Operators JS RegExp JS Statements JS String

Window

Window Object Window Console Window History Window Location Window Navigator Window Screen

HTML DOM

DOM Document DOM Element DOM Attributes DOM Events DOM Event Objects DOM HTMLCollection DOM Style
alignContent alignItems alignSelf animation animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationTimingFunction animationPlayState background backgroundAttachment backgroundColor backgroundImage backgroundPosition backgroundRepeat backgroundClip backgroundOrigin backgroundSize backfaceVisibility border borderBottom borderBottomColor borderBottomLeftRadius borderBottomRightRadius borderBottomStyle borderBottomWidth borderCollapse borderColor borderImage borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeft borderLeftColor borderLeftStyle borderLeftWidth borderRadius borderRight borderRightColor borderRightStyle borderRightWidth borderSpacing borderStyle borderTop borderTopColor borderTopLeftRadius borderTopRightRadius borderTopStyle borderTopWidth borderWidth bottom boxShadow boxSizing captionSide caretColor clear clip color columnCount columnFill columnGap columnRule columnRuleColor columnRuleStyle columnRuleWidth columns columnSpan columnWidth counterIncrement counterReset cursor direction display emptyCells filter flex flexBasis flexDirection flexFlow flexGrow flexShrink flexWrap cssFloat font fontFamily fontSize fontStyle fontVariant fontWeight fontSizeAdjust height isolation justifyContent left letterSpacing lineHeight listStyle listStyleImage listStylePosition listStyleType margin marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth objectFit objectPosition opacity order orphans outline outlineColor outlineOffset outlineStyle outlineWidth overflow overflowX overflowY padding paddingBottom paddingLeft paddingRight paddingTop pageBreakAfter pageBreakBefore pageBreakInside perspective perspectiveOrigin position quotes resize right scrollBehavior tableLayout tabSize textAlign textAlignLast textDecoration textDecorationColor textDecorationLine textDecorationStyle textIndent textOverflow textShadow textTransform top transform transformOrigin transformStyle transition transitionProperty transitionDuration transitionTimingFunction transitionDelay unicodeBidi userSelect verticalAlign visibility width wordBreak wordSpacing wordWrap widows zIndex

Web APIs

API Console API Fullscreen API Geolocation API History API MediaQueryList API Storage

HTML Objects

<a> <abbr> <address> <area> <article> <aside> <audio> <b> <base> <bdo> <blockquote> <body> <br> <button> <canvas> <caption> <cite> <code> <col> <colgroup> <datalist> <dd> <del> <details> <dfn> <dialog> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <footer> <form> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <ins> <input> button <input> checkbox <input> color <input> date <input> datetime <input> datetime-local <input> email <input> file <input> hidden <input> image <input> month <input> number <input> password <input> radio <input> range <input> reset <input> search <input> submit <input> text <input> time <input> url <input> week <kbd> <label> <legend> <li> <link> <map> <mark> <menu> <menuitem> <meta> <meter> <nav> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <s> <samp> <script> <section> <select> <small> <source> <span> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <textarea> <time> <title> <track> <u> <ul> <var> <video>

Other References

CSSStyleDeclaration JS Conversion


제출 formMethod 속성 입력

❮ 제출 대상 입력

예시

양식을 서버에 제출하는 데 사용되는 HTTP 메소드를 찾으십시오.

var x = document.getElementById("mySubmit").formMethod;

정의 및 사용

formMethod 속성은 제출 버튼의 formmethod 속성 값을 설정하거나 반환합니다.

formmethod 속성은 form-data를 action URL로 보내기 위한 HTTP 메소드를 정의합니다.

formmethod 속성은 <form> 요소의 method 속성을 재정의합니다.

formmethod 속성은 type="submit"인 버튼에만 사용됩니다.

양식 데이터는 URL 변수(method="get") 또는 HTTP 포스트 트랜잭션(method="post")으로 보낼 수 있습니다.

"get" 메서드에 대한 참고 사항:

  • 이름/값 쌍의 URL에 양식 데이터를 추가합니다.
  • 사용자가 결과를 책갈피로 지정하려는 양식 제출에 유용합니다.
  • URL에 넣을 수 있는 데이터의 양에는 제한이 있으므로(브라우저마다 다름) 모든 양식 데이터가 올바르게 전송되는지 확신할 수 없습니다.
  • 민감한 정보를 전달하기 위해 "get" 메소드를 사용하지 마십시오! (비밀번호 또는 기타 민감한 정보는 브라우저의 주소 표시줄에 표시됩니다)

"post" 방법에 대한 참고 사항:

  • 양식 데이터를 HTTP 포스트 트랜잭션으로 보냅니다.
  • "게시" 방법을 사용하는 양식 제출은 북마크할 수 없습니다.
  • "get"보다 더 강력하고 안전합니다.
  • 크기 제한이 없습니다

참고: formmethod 속성은 HTML5에서 type="submit"인 <input> 요소에 대한 새로운 기능입니다.


브라우저 지원

Property
formMethod Yes 10.0 Yes Yes Yes


통사론

formMethod 속성을 반환합니다.

submitObject.formMethod

formMethod 속성을 설정합니다.

submitObject.formMethod = get|post

속성 값

Value Description
get Default. Appends the form-data to the URL in name/value pairs: URL?name=value&name=value
post Sends the form-data as an HTTP post transaction

기술적 세부 사항

반환 값: 서버에 양식을 제출하는 데 사용되는 HTTP 메서드를 나타내는 문자열

더 많은 예

예시

양식 데이터를 보내는 방법을 변경합니다.

document.getElementById("mySubmit").formMethod = "post";

관련 페이지

HTML 참조: HTML <input> formmethod 속성


❮ 제출 대상 입력