I came to the same conclusion too. This is what I came up with:
var h1s = document.getElementsByTagName("h1");
h1s[0].id = "skipto";
document.getElementById("skip").href = "#skipto";
It assumes there is a button with id “skip”.
It renames the first h1 (should be 1 anyway)
Then sets the “Skip to Content” button’s href to the newly named h1 tag.
interesting. where do you put this code? In the project settings??
I would think a link with id “skip” rather than a button (it’s called a skip link after all!)
I’d also name the H1 “main”, so we can “skip to main”
I like this a lot. Hopefully makes things easier to set up without having to remember to give the id on every page
hey… sorry for the slow response… it’s all about position. Set the position to a negative and it’ll be off the screen. on focus it should then be shown on screen