/    Sign up×
Community /Pin to ProfileBookmark

Is Javascript run on client side computer?

I have a impression that Javascript runs on client computer. But by reading tutorial at W3schools. I found it runs on server side. Please help me out.
I want to implement show server’s time on client computer every 1 second. so I want client send query request in every 1 second. and on server side use APS <%Response.Write( now())%>.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@felgallApr 17.2007 — Don't believe everything you read at W3Schools as that is quite a mediocre tutorial site that contains both uncorrected errors and outdated information. Javascript runs client side in most browsers except Internet Explorerer. IE has an almost identical language called JScript that runs client side and most of the same code therefore works in all browsers. JScript can also be run server side via ASP or .NET.

The simplest way of showing the server time in the browser would be to use a server side language to put the value in the web page to start with and then use Javascript to update that value every second. Further reference back to the server should be unnecessary since the Javascript can count seconds from a specific start time just as easily as the server can.
×

Success!

Help @wwwrabbit spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...