1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Javascript pop-up hides address bar and tool bar

Discussion in 'JavaScript' started by Javver, Feb 3, 2010.

  1. #1
    Hi,
    I need a code for javascript pop-up that hides the address bar and tool bar. just plain pop-up

    Thanks :)
     
    Javver, Feb 3, 2010 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    hope this works.

    
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=500,left = 390,top = 150');");
    }
    
    Code (markup):
    simply use it like this

    
    
    popUp('http://www.yourdomain.com');
    
    
    Code (markup):
     
    stephan2307, Feb 4, 2010 IP
  3. Javver

    Javver Active Member

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    that works.. thanks :)
     
    Javver, Feb 19, 2010 IP
  4. search engine

    search engine Member

    Messages:
    206
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    I am very noob.

    where should I past this code?
    I want to use this pop up in my wordpress.

    Please help guys finally I have found what I was looking for!
     
    search engine, May 3, 2010 IP