Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question help! window pop-up problem

    I'm using the javascript: window pop-up which when you click on a link on my website, the page opens in a new window. But something somewhere isn't working.
    http://wewfed2000.hypermart.net/index.shtml

    Any help would be greatly appreciated.

  • #2
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The titel (second part off the window.open) contains invallid caracters. remove it and the window will open.

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    doesn't seem to of worked. i've probably done it wrong or something

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    U.S. (Wish Japan though)
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, try changing the " to ' for the window.open

    Code:
    xtpop = window.open('http://clickit.go2net.com/adclick?cid=238003&area=hm.dir.rec.wrestling&site=hm&shape=exitpopup&keyword=exitpopup','xtpop','width=720,height=320,toolbar,scrollbars,menubar,resizable,top=100,left=100');
    If that doesn't work, then I think you may have a problem with your Cookie declaration right above it...

  • #5
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello there,

    here is what i mean:

    function comedy(){
    var popurl="comedy.htm"
    winpops=window.open(popurl,"","width=600,height=400,scrollbars,")
    }

    the part where you entered the url, is the name off the window. The same as you entered before (winpops)

    I asume you whant the url in the titelbar off the new window. You can do that in de document off the page you opened or afther winpops by winpos.document.titel "http://wewfed2000.hypermart.net/comedy.htm"

    Greetings Hans

  • #6
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Had similar problem; here's a solution

    I had to do a page similar to what you've got, only I was using an image map. I'd found some code on a site that i thought was well-designed and copied it--then tried to adapt it to my site for a client. The thing that hung me up was that I needed a "return false" to keep it from opening in the same window in order to "pop-up".

    Take a look at the zipped attachments:the file "corbispu.txt" was the code i copied, and "adapcode.txt" is how I adapted it to my client's site ---maybe they'll help get your popups working right.
    Attached Files Attached Files

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    What's with this?

    function open () {return true;}

    You just over-wrote window.open().

    Also - your links don't have closing (</a>) tags. And a bunch of other stuff, but start with the above.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •