พารามิเตอร์ฟังก์ชั่นที่กำหนดเองจะถูกส่งผ่านไปยังรูปแบบสตริงและวิธีการผ่าน
1: ใช้สิ่งนี้เพื่อผ่าน
2: คำพูดเริ่มต้น
3: อักขระหลบหนี (HTML หมายถึง "คำพูดสองครั้ง 'ย่อมาจากคำพูดเดี่ยว, โดยตรง /" ในชุดอักขระ JavaScript และ Java General Escape)
<html> <head> <script language = "LiveScript"> ฟังก์ชั่นพิมพ์ (arg) {alert ("hello!"+arg); } </script> </head> <body> <form> <input type = "button" name = "button1" value = "First" OnClick = "Print (this.str)" str = "Hello One"> <br> <br> <input type = "button =" button2 "value =" second " onclick = "print (" hello three ")"> </form> </body> </html>