View Full Version : help! window pop-up problem

07-27-2002, 10:52 AM
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.

Any help would be greatly appreciated.

07-27-2002, 11:04 AM
The titel (second part off the window.open) contains invallid caracters. remove it and the window will open.

07-27-2002, 03:04 PM
doesn't seem to of worked. i've probably done it wrong or something

07-27-2002, 03:28 PM
Hmm, try changing the " to ' for the window.open

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=1 00');

If that doesn't work, then I think you may have a problem with your Cookie declaration right above it...

07-27-2002, 06:54 PM
Hello there,

here is what i mean:

function comedy(){
var popurl="comedy.htm"

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

07-28-2002, 04:56 PM
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.

07-29-2002, 04:22 AM
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.