function
funMake() {
document.write(document.getElementById(
'f1'
).getAttribute(
'method'
));
}
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
form
id
"f1"
action
"#"
method
"post"
input
"txt1"
type
"text"
br
"b1"
"submit"
name
"perform"
value
"OK"
funMake();