On Login page display button of okta for okta domain login

Hello sir,
I have used the given solution which you have given but in this, it shows default design with given widget but I want to implement on my local site without the template and in this, it redirects to org.okta.com home page https://orgnaizationdomain.okta.com/app/UserHome but I want to redirect to My local domain dashboard Mydomain\dashboard

This is my scenario or I want to implement like this not default
Suppose I have declared one button in my login page as given below image
image

Now when I click on Okta login Button and it gonna be redirect to
https://orgnaizationdomain.okta.com/login/login.htm

and in that, if the user exists then it gonna be redirect to Mydomain/dashboard
if fail then display login failed
and this is my view page code

            <input class="button-1 login-button" onclick="myFunction()" value="Okta login" />
                    <script>
                        function myFunction() {
                           alert("in");
                        var signIn = new OktaSignIn({
                            baseUrl: 'https://${orgnaizationdomain.okta.com}',
                            authParams: {
                                issuer: 'https://${orgnaizationdomain.okta.com}/oauth2/default'
                            }
                        });
                        signIn.showSignInToGetTokens({
                            clientId: '${client id}',
                            // must be in the list of redirect URIs enabled for the OIDC app
                            redirectUri: '${mydomain/dashboard}',
                            // Return an access token from the authorization server
                            getAccessToken: true,
                            // Return an ID token from the authorization server
                            getIdToken: true,
                            scope: 'openid profile'
                            });
                        }
    </script>

But in this nothing happen , where I am wrong can you please address me

I have referred this link also but not worked for me
https://developer.okta.com/quickstart-fragments/widget/default-example/#configure-the-sign-in-widget

if you have any idea or suggestion please share it will be so helpful Thanks