I've got a theme, with a options-page. I have to create tabs for this, so I have to include my custom js-file.

I have attempted this:

function add_js() {
    echo '<script type="text/javascript" src="'.get_bloginfo('template_url').'/options/js.js'.'"></script>';


However, this obiviously adds the script towards the blog itself, although not the admin-panel. How you can include this js-file only in options-page?

Thanks, Martti Laine

Might i refer you to definitely towards the following WPSE subject.

Hope that can help.