Adding onload to body for certain pages
I am looking for a function to add
body onload=prepareFrame('https://airtable embed URL here')
to certain wordpress pages only.
I know how to add a custom body class but not an onload statement.
add_filter('body_class', 'custom_body_class');
function custom_body_class($classes) {
global $post;
if ($post-ID == 346) {
$classes[] = 'services';
}
return $classes;
}