<html> <head> <title>PHP</title> <script src="jquery.js"></script> <script src="sample.js"></script> </head> <body onload="sample()"> <div id="memo"></div> </body> </html> function sample(){ $("#memo").html("hel"); }