Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javascript  RSS feed

 
ben oliver
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
test.html:

<script>

function abc() {

}

function xyz() {...}

// put some action type javascript code that calls some other function in another javascript file, line 1
</script>

// some html code line 2

question ---- will line 1 be executed before it displays the html content in line 2 ?

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use code tags when you post code. Please use the button and edit your post.

I think the easy answer is did you test it out and what happened?

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "javascript" in a forum completely dedicated to questions on JavaScript isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!