Javascript Calling Function
var macs = { getMacAddress : function() { document.macaddressapplet.setSep( '-' ); document.write( 'Mac Address = ' + document.macaddressapplet.getMacAddres
Solution 1:
Just use macs.getMacAddress();
The function doesn't return anything. It simply writes to the document. If you want it to return the string, replace document.write with return when you define macs.
Also, note that calling document.write after the page is loaded will overwrite the current page (because it implies document.open). If you need to append to the document after it's loaded, use the DOM or innerHTML.
Post a Comment for "Javascript Calling Function"