/    Sign up×
Community /Pin to ProfileBookmark

help me to understand the pice of code

<script language=”javascript” type=”text/javascript”>
var section = 1;
var level1 = “”;
var level2 = “”;
var level3 = “”;
var path = “../”;
</script>
thank you

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@HJCauthorNov 03.2008 — so,

set variable in here and they will be use on another external java script,

is this the common way to call java script?

Thank you
Copy linkTweet thisAlerts:
@MrNobodyNov 03.2008 — In the strict sense of the term, that code does not "call" anything. That code also does not even represent a script -- since all it does is define and initialize a few variables. Those SCRIPT tags do cause the invocation of the JavaScript engine within the browser, though. ?
Copy linkTweet thisAlerts:
@felgallNov 03.2008 — It doesn't really need the language="javascript" though as that has been deprecated.
×

Success!

Help @HJC 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 6.18,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...