Desplácese un elemento en HTML con un botón

function scrollintoid(text)
{
    var my_element = document.getElementById(text);
    my_element.scrollIntoView
    ({
    behavior: "smooth",//does not work for me...
    block: "start",
    inline: "nearest"
    
    });
}
Bored Buzzard