By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

What does this line of code mean?

P: 35
Can anyone explain this line of code to me:

Expand|Select|Wrap|Line Numbers
  1. <script type="text/javascript" id="StartupScript" src="StartupScript.js?v=1" >
  2.  
For example why is it necessary to create an id for the script? And what does the ?v=1 mean after the script name

Thanks much
Oct 16 '06 #1
Share this Question
Share on Google+
1 Reply


iam_clint
Expert 100+
P: 1,208
the ?v=1 is a variable transferred to the javascript the same way the get method in a form works.
giving it an id just gives the line something to identify it by.
Oct 16 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.