Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

run 2 scripts from html tag  RSS feed

 
lindsay smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
G'day All,
Forgive my ignorance please.

I have a page with a menu script in the head tag and a reference to an external script (banner.js).

I need to run 2 routines 1 from each script from the body tag.

0nLoad="displayBanners()" 0nLoad="preloadImages();"

of coarse the above does not work.

Could some kind soul tell me how I may work around this?

Perhaps I can call one from the other?

tia
build
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
there is a HTML/Javascript forum on Javaranch.

but perhaps this works:
onXXXX="foo(); bar(); baz();"



cheers

pascal
 
lindsay smith
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you pascal,
That works beautifully. I didn't realise there was such a forum and wasn't sure this was a html problem however I'm learning thanks to you.
thx & cheers,
build
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!