Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Embed Javascript file in

Thread Tools

Embed Javascript file in

unnikpulikkal unnikpulikkal is offline
Junior Member
Join Date: Feb 2008
Posts: 2
I have a Javascript in myfunctions.js file and i want to access functions written in myfunctions.js file to my code.and also i wants to store the output of startTime() function to a lable control text property.

the following is the java script

<script type="text/javascript">

function startTime()
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();

document.getElementById('txt').innerHTML=h+":"+m+" :"+s;

function checkTime(i)
if (i<10)
i="0" + i;
return i;

please help

Last edited by unnikpulikkal; 02-08-2008 at 03:47 AM..
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed the javascript file. Jianwei Sun ASP .Net 4 05-21-2008 03:37 PM
Embed ".html" file into ".aspx" file yukijocelyn ASP .Net 0 08-06-2007 08:41 AM
How to embed javascript in an ASP.NET 2.0 web page? Keithb ASP .Net 2 10-03-2006 03:26 PM
How to embed image or javascript file into custom server control dll Big Dave ASP .Net 0 03-10-2005 03:37 PM
how to embed javascript in the Green ASP .Net 2 09-29-2004 02:12 AM