VideoHive

change onclick to onload...

292 posts
  • Bought between 100 and 499 items
  • Has been a member for 6-7 years
  • United States
timmylogue says

Maybe someone can help me out? Please :D

This is a very basic um I wanna say a lightbox….. I want to have it do a “onload” instead of onclick. Is this possible?

Here is my code: http://www.pastie.org/2153480

Thanks! Timothy

2333 posts
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Elite Author
  • Contributed a Blog Post
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 4-5 years
+8 more
dtbaker moderator says

Maybe give an example.

onload will generally fire once the element is displayed on the page.

by
by
by
by
by