JS/要素を変更するメソッド■要素に対して変更をかけるメソッド@script.jsfunction func(str1,str2){alert(str1)alert(str2)}@index.html<head><script type="text/javascript" src="script.js"></script><script type="text/javascript">func("str1","str2")</script></head>