PDA

View Full Version : javascript calling function



kennedysee
22 Jan 2010, 12:54 AM
var macs = {
getMacAddress : function()
{
document.macaddressapplet.setSep( "-" );
document.write( "Mac Address = " + document.macaddressapplet.getMacAddress() );
}


how do i call this function and display out in the website?

this doesn't seems working..

<script type="text/javascript">
document.write(mac.getMacAddress());
</script>

Anyone help?