Forum Moderators: open

Message Too Old, No Replies

javascript:window.open()

Stop [object] from showing on the page.

         

antenc

1:47 pm on Apr 7, 2005 (gmt 0)

10+ Year Member



<a href="javascript:window.open('http://example.com/person?ein=701894816', 'Directory', 'width=350, height=550')">Directory
<a/>

I have got this link on a page. The link works fine yet when you click on it the page on which the link appears goes white and it displays [object] on the page. Does anyone know how to get around this, so that the page stays the same?

Thanks

<use example.com.
See Terms of Service [webmasterworld.com]>

[edited by: tedster at 11:33 am (utc) on May 3, 2005]

cmatcme

1:57 pm on Apr 7, 2005 (gmt 0)

10+ Year Member



From the url of your webpage, it seems like your using a free webhost. Sometimes free webhosts don't like you using certain codes (like examplehost doesn't permit forms for 3 days) and try to lure you away from doing so by "defacing" your page. Are you using a free host? If so, there's your reason.

Not my area really.

cmatcme

-------------------------------
Glossary [webmasterworld.com] Help [webmasterworld.com] <-- Useful Links

[edited by: cmatcme at 2:08 pm (utc) on April 7, 2005]

antenc

2:01 pm on Apr 7, 2005 (gmt 0)

10+ Year Member



Thanks for your help. But this isn't on a free web hosting service. I had a test version on a simple web page and it done exactly the same.

cmatcme

2:06 pm on Apr 7, 2005 (gmt 0)

10+ Year Member



I tested it out offline and got the same problem but when I did this it didn't display!

<a href="#" onClick="window.open('http://example.com/pls/ids/person?ein=701894816', 'Directory', 'width=350, height=550')">Directory 
</a>

cmatcme

Please use example.com .. It's in the TOS!

antenc

2:22 pm on Apr 7, 2005 (gmt 0)

10+ Year Member



Perfect.

Thanks for your help.

Much appreciated.

Carl