Open an external URL in popup on click in angular 4Angular HTML bindingIn Angular, how do you determine the active route?How to redirect to an external URL in Angular2?Angular DI Error - EXCEPTION: Can't resolve all parametersAngular 2 - Redirect to an external URL and open in a new tabOpen an external URL from within Angular ComponentHow to set environment via `ng serve` in Angular 6Open PDF document without popup blockerHow can I open external link in angular cli?Angular 6 PopUp

How can I deal with extreme temperatures in a hotel room?

What exactly did Ant-Man see that made him say that their plan worked?

Golf the smallest circle!

How to add text on top of symbols for vector layers in QGIS

Could a Weapon of Mass Destruction, targeting only humans, be developed?

Why is Silver Fang rated as S-class Rank 3 hero?

What is "oversubscription" in Networking?

How is this practical and very old scene shot?

Why do we use a cylinder as a Gaussian surface for infinitely long charged wire?

What does grep -v "grep" mean and do?

How to answer "write something on the board"?

If two black hole event horizons overlap (touch) can they ever separate again?

Why transcripts instead of degree certificates?

Is there reliable evidence that depleted uranium from the 1999 NATO bombing is causing cancer in Serbia?

Most elegant way to write a one shot IF

Cast volatile array to non volatile array

How can I specify a local port when establishing SSH connections?

Is there a legal way for US presidents to extend their terms beyond four years?

cannot execute script while its permission is 'x'

Breakups - Makeups

Who voices the character "Finger" in The Fifth Element?

Movie with Zoltar, a trailer park named Paradise and a boy playing a video game and being recruited by aliens to fight in space

Boolean Difference with Offset?

Pairwise Scatter Plots with Histograms and Correlations



Open an external URL in popup on click in angular 4


Angular HTML bindingIn Angular, how do you determine the active route?How to redirect to an external URL in Angular2?Angular DI Error - EXCEPTION: Can't resolve all parametersAngular 2 - Redirect to an external URL and open in a new tabOpen an external URL from within Angular ComponentHow to set environment via `ng serve` in Angular 6Open PDF document without popup blockerHow can I open external link in angular cli?Angular 6 PopUp






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am giving a link to the external web address in my angular 4 apps. I need to open the site in a popup without an address bar.










share|improve this question
























  • You mean with an iframe?

    – Antoine Delia
    Mar 25 at 13:28











  • any other alternative ?

    – user9040429
    Mar 25 at 13:34

















0















I am giving a link to the external web address in my angular 4 apps. I need to open the site in a popup without an address bar.










share|improve this question
























  • You mean with an iframe?

    – Antoine Delia
    Mar 25 at 13:28











  • any other alternative ?

    – user9040429
    Mar 25 at 13:34













0












0








0








I am giving a link to the external web address in my angular 4 apps. I need to open the site in a popup without an address bar.










share|improve this question
















I am giving a link to the external web address in my angular 4 apps. I need to open the site in a popup without an address bar.







angular angular6






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 16:01









Egon Allison

9001 gold badge5 silver badges19 bronze badges




9001 gold badge5 silver badges19 bronze badges










asked Mar 25 at 13:27









user9040429user9040429

2924 silver badges16 bronze badges




2924 silver badges16 bronze badges












  • You mean with an iframe?

    – Antoine Delia
    Mar 25 at 13:28











  • any other alternative ?

    – user9040429
    Mar 25 at 13:34

















  • You mean with an iframe?

    – Antoine Delia
    Mar 25 at 13:28











  • any other alternative ?

    – user9040429
    Mar 25 at 13:34
















You mean with an iframe?

– Antoine Delia
Mar 25 at 13:28





You mean with an iframe?

– Antoine Delia
Mar 25 at 13:28













any other alternative ?

– user9040429
Mar 25 at 13:34





any other alternative ?

– user9040429
Mar 25 at 13:34












4 Answers
4






active

oldest

votes


















0














check Mozilla documentation
https://developer.mozilla.org/en-US/docs/Web/API/Window/open



In internet explorer, if the new url is from the same domain as the current url, the window will be open without an address bar. Otherwise, it will cause an address bar to appear. One workaround is to open a page from the same domain and then redirect from that page.



window.open('https://yourSite.com', 'winname', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');





share|improve this answer






























    0














    you can use like this



    <a [href]="www.yourlink.com" target="_blank">





    share|improve this answer























    • Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

      – d_kennetz
      Mar 25 at 15:43


















    0














    Usually, you should avoid opening links in a popup window as it is not the best user experience practice, however, you can open up a link using good old <a> tag as follows and by putting the target property to popup you can achieve what you need.






    <a href="https://google.com" 
    target="popup"
    onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
    Pop Up
    </a>




    here you can find more properties that can be set to add more behavior to the popup. i.e. in case, you don't want the user to resize the window you can set resizable=no (doesn't work on Chrome*).
    P.S. Please check the support of different browsers for the options you need.




    share|improve this answer






























      0














      You can use bootstrap modal popup and iframe to render your site.



      <iframe [src]="yourURL" width="700" height="800" ></iframe>





      share|improve this answer

























        Your Answer






        StackExchange.ifUsing("editor", function ()
        StackExchange.using("externalEditor", function ()
        StackExchange.using("snippets", function ()
        StackExchange.snippets.init();
        );
        );
        , "code-snippets");

        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "1"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338904%2fopen-an-external-url-in-popup-on-click-in-angular-4%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        check Mozilla documentation
        https://developer.mozilla.org/en-US/docs/Web/API/Window/open



        In internet explorer, if the new url is from the same domain as the current url, the window will be open without an address bar. Otherwise, it will cause an address bar to appear. One workaround is to open a page from the same domain and then redirect from that page.



        window.open('https://yourSite.com', 'winname', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');





        share|improve this answer



























          0














          check Mozilla documentation
          https://developer.mozilla.org/en-US/docs/Web/API/Window/open



          In internet explorer, if the new url is from the same domain as the current url, the window will be open without an address bar. Otherwise, it will cause an address bar to appear. One workaround is to open a page from the same domain and then redirect from that page.



          window.open('https://yourSite.com', 'winname', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');





          share|improve this answer

























            0












            0








            0







            check Mozilla documentation
            https://developer.mozilla.org/en-US/docs/Web/API/Window/open



            In internet explorer, if the new url is from the same domain as the current url, the window will be open without an address bar. Otherwise, it will cause an address bar to appear. One workaround is to open a page from the same domain and then redirect from that page.



            window.open('https://yourSite.com', 'winname', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');





            share|improve this answer













            check Mozilla documentation
            https://developer.mozilla.org/en-US/docs/Web/API/Window/open



            In internet explorer, if the new url is from the same domain as the current url, the window will be open without an address bar. Otherwise, it will cause an address bar to appear. One workaround is to open a page from the same domain and then redirect from that page.



            window.open('https://yourSite.com', 'winname', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=350');






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 25 at 13:43









            Boris AdamyanBoris Adamyan

            12410 bronze badges




            12410 bronze badges























                0














                you can use like this



                <a [href]="www.yourlink.com" target="_blank">





                share|improve this answer























                • Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

                  – d_kennetz
                  Mar 25 at 15:43















                0














                you can use like this



                <a [href]="www.yourlink.com" target="_blank">





                share|improve this answer























                • Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

                  – d_kennetz
                  Mar 25 at 15:43













                0












                0








                0







                you can use like this



                <a [href]="www.yourlink.com" target="_blank">





                share|improve this answer













                you can use like this



                <a [href]="www.yourlink.com" target="_blank">






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 13:46









                Pooja GhetiaPooja Ghetia

                607 bronze badges




                607 bronze badges












                • Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

                  – d_kennetz
                  Mar 25 at 15:43

















                • Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

                  – d_kennetz
                  Mar 25 at 15:43
















                Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

                – d_kennetz
                Mar 25 at 15:43





                Hi! While this may be an answer to the question (untested), code only answers are discouraged on SO. Please consider adding an explanation to your answer to help OP better understand, and to provide greater benefit to future visitors of the site. Thanks!

                – d_kennetz
                Mar 25 at 15:43











                0














                Usually, you should avoid opening links in a popup window as it is not the best user experience practice, however, you can open up a link using good old <a> tag as follows and by putting the target property to popup you can achieve what you need.






                <a href="https://google.com" 
                target="popup"
                onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
                Pop Up
                </a>




                here you can find more properties that can be set to add more behavior to the popup. i.e. in case, you don't want the user to resize the window you can set resizable=no (doesn't work on Chrome*).
                P.S. Please check the support of different browsers for the options you need.




                share|improve this answer



























                  0














                  Usually, you should avoid opening links in a popup window as it is not the best user experience practice, however, you can open up a link using good old <a> tag as follows and by putting the target property to popup you can achieve what you need.






                  <a href="https://google.com" 
                  target="popup"
                  onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
                  Pop Up
                  </a>




                  here you can find more properties that can be set to add more behavior to the popup. i.e. in case, you don't want the user to resize the window you can set resizable=no (doesn't work on Chrome*).
                  P.S. Please check the support of different browsers for the options you need.




                  share|improve this answer

























                    0












                    0








                    0







                    Usually, you should avoid opening links in a popup window as it is not the best user experience practice, however, you can open up a link using good old <a> tag as follows and by putting the target property to popup you can achieve what you need.






                    <a href="https://google.com" 
                    target="popup"
                    onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
                    Pop Up
                    </a>




                    here you can find more properties that can be set to add more behavior to the popup. i.e. in case, you don't want the user to resize the window you can set resizable=no (doesn't work on Chrome*).
                    P.S. Please check the support of different browsers for the options you need.




                    share|improve this answer













                    Usually, you should avoid opening links in a popup window as it is not the best user experience practice, however, you can open up a link using good old <a> tag as follows and by putting the target property to popup you can achieve what you need.






                    <a href="https://google.com" 
                    target="popup"
                    onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
                    Pop Up
                    </a>




                    here you can find more properties that can be set to add more behavior to the popup. i.e. in case, you don't want the user to resize the window you can set resizable=no (doesn't work on Chrome*).
                    P.S. Please check the support of different browsers for the options you need.




                    <a href="https://google.com" 
                    target="popup"
                    onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
                    Pop Up
                    </a>





                    <a href="https://google.com" 
                    target="popup"
                    onclick="window.open('https://google.com','popup','width=200,height=200,'); return false;">
                    Pop Up
                    </a>






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Mar 26 at 9:04









                    ThrillerThriller

                    3493 silver badges10 bronze badges




                    3493 silver badges10 bronze badges





















                        0














                        You can use bootstrap modal popup and iframe to render your site.



                        <iframe [src]="yourURL" width="700" height="800" ></iframe>





                        share|improve this answer



























                          0














                          You can use bootstrap modal popup and iframe to render your site.



                          <iframe [src]="yourURL" width="700" height="800" ></iframe>





                          share|improve this answer

























                            0












                            0








                            0







                            You can use bootstrap modal popup and iframe to render your site.



                            <iframe [src]="yourURL" width="700" height="800" ></iframe>





                            share|improve this answer













                            You can use bootstrap modal popup and iframe to render your site.



                            <iframe [src]="yourURL" width="700" height="800" ></iframe>






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 26 at 9:12









                            leka patrickleka patrick

                            263 bronze badges




                            263 bronze badges



























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55338904%2fopen-an-external-url-in-popup-on-click-in-angular-4%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                                용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                                155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해