WordPress.org

Support

Support » How-To and Troubleshooting » How do I add an onload event for one specific page?

How do I add an onload event for one specific page?

  • rowan.bradley
    Member

    @rowanbradley

    I need one specific page on my WordPress site to call a Javascript function when the page is loaded. I can’t do this in the page itself, because there is no body tag to insert the onload event into. I can’t do it in the header file because then it will affect all the other pages on the site.

    How do I do this?

    Thanks – Rowan

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I add an onload event for one specific page?’ is closed to new replies.