• jaschulz

    (@jaschulz)


    As I understand it, header.php is loaded last when the user moves to a new page. So, since I want, each time a page is loaded, to being the focus to an element (which exists on all my pages), I presume what I need to do is add a php call to the header, but I know very little about php, and I have no idea what that function should look like.

    Any help would be appreciated.

    Thanks,

    JAS

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    As I understand it, header.php is loaded last when the user moves to a new page.

    Um… no it isn’t. It’s the second file that is loaded from your theme (functions.php being the first as far as I recall).

    Thread Starter jaschulz

    (@jaschulz)

    Well, in any case, the following does NOT do what I need:

    <body onload="document.getElementById('myElement').focus();" >

    Any ideas about what would work?

    Thanks,

    JAS

    esmi

    (@esmi)

    You might be best starting here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bring focus to page element’ is closed to new replies.