>The reason I asked this it that in a JS script I ask for a password. If the password is good I want to execute either another JS script or HTML code.
From any javascript code, you can just issue the function name as is to call another one:
function Login()
{
if (something)
{
MyNextFunction()
}
}