How to open page in javascript

Hi I have a quastion I have the following function


function handleName(name){
Here i want javascript to do following.
open name.shtml target="_self"
}

How can this be done?

Thanks

I am currently doing this

function handleName(name){
top.location.href = (name.toLowerCase() + “.html”);
}

but i get a invalid character error message, it works, but just wondering how to remove that error? It occured when I added that function.

Can’t you just target your link inside your ‘a’ tag?
<a href=“yourlink” target=“yourtarget”>link</a>