How do I add _blank to window.location function?

I am using this function to take a person to a page on clicking a button:


    function essb6d() {
        window.location=("vehicle_reference/appb6d/www/index.html");
    }

However, I want to open in a new window. How do I do that?
These don’t work:

window.location=("vehicle_reference/appb6d/www/index.html" "target='_blank'");
window.location=("'vehicle_reference/appb6d/www/index.html' target='_blank'");

Try

window.open('vehicle_reference/appb6d/www/index.html', '_blank').focus();
2 Likes

YES! That works.

1 Like