How to realize pop-up window through HTML?

Discussion in 'HTML & Website Design' started by Britney6, Sep 26, 2021.

  1. #1
    Friends, who knows how to realize pop-up window through HTML?
     
    Britney6, Sep 26, 2021 IP
  2. shalom_m

    shalom_m Member

    Messages:
    49
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    33
    #2
    Quite simple really:

    <input type="button" value="Open a Popup Window" onclick="window.open('https://euroburo-slovenia.com/','popUpWindow','height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');">
    HTML:
    First it creates a button with "Open a Popup Window" text
    When clicked, rhe new window loads an external page from euroburo-slovenia.com.
    It opens a window 500px wide and 400px high, 100px removed from left and top edges of screen.
    The pop-up windoe is resizable, has scrollbars, toolbars no menubar, etc...
     
    shalom_m, Nov 20, 2021 IP
  3. mmerlinn

    mmerlinn Prominent Member

    Messages:
    3,197
    Likes Received:
    819
    Best Answers:
    7
    Trophy Points:
    320
    #3
    And WHY would you want to piss off your visitors with popup advertising windows?
     
    mmerlinn, Nov 21, 2021 IP