open page and open other window

Discussion in 'HTML & Website Design' started by fgsg, Nov 8, 2012.

  1. #1
    hi,

    how i can make when sombody open my page automatic in other window open other page which i need advertisement ?

    thanks.
     
    fgsg, Nov 8, 2012 IP
  2. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #2
    Do you mean a popup?


    People might start hating your site, if you use it, but whatever.


    Here is a tutorial
    http://www.quirksmode.org/js/popup.html
    Code (markup):




    Have fun
     
    GMF, Nov 8, 2012 IP
  3. fgsg

    fgsg Well-Known Member

    Messages:
    275
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #3
    this is not automatic u need click on link i need automatic way
     
    fgsg, Nov 8, 2012 IP
  4. GMF

    GMF Well-Known Member

    Messages:
    855
    Likes Received:
    113
    Best Answers:
    19
    Trophy Points:
    145
    #4
    Use the window.open() method

    Be aware: Most browsers will simply block it
     
    GMF, Nov 8, 2012 IP
  5. karan1149

    karan1149 Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    The only way to make a popup that isn't blocked is to do so when a user clicks on a page. Otherwise, the browser knows that it's a popup.
     
    karan1149, Nov 8, 2012 IP
  6. chisamdesigns

    chisamdesigns Well-Known Member

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #6
    If you are looking for the link to open in new tab, just add - target="blank" in the link. Here is an example..
    <a href=" link " target= "blank" > Text </a>
     
    chisamdesigns, Nov 9, 2012 IP