popup window changes host page to [object]

M

mmac

When I use this command in a webpage

Response.Write "<a
href=""javascript:window.open('events/EventDetails.asp?EventID=" &
theEventID & "' )"">" & theLinkText & "</a>"

I get the new window to open but it also affects the "host" window. The
"host" window is left with the word "[object]" in it.

If I refresh the window that says [object] the new window opens again.

Why and how can I make the new window open without affecting the previous
one?
 
M

mmac

OK, I am still trying to figure out where asp and the javascript begins ..
I'll look that direction.
Thanks you for the help.
Do you know where a javascript NG can be found?


TomB said:
This would be a javascript/client-side question having nothing to do with
asp.
<a href="javascript........" onClick="return false;">I think that's
right</a>

mmac said:
When I use this command in a webpage

Response.Write "<a
href=""javascript:window.open('events/EventDetails.asp?EventID=" &
theEventID & "' )"">" & theLinkText & "</a>"

I get the new window to open but it also affects the "host" window. The
"host" window is left with the word "[object]" in it.

If I refresh the window that says [object] the new window opens again.

Why and how can I make the new window open without affecting the previous
one?
 
D

Dave Anderson

mmac said:
Do you know where a javascript NG can be found?

microsoft.public.scripting.jscript


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
T

TomB

This would be a javascript/client-side question having nothing to do with
asp.
<a href="javascript........" onClick="return false;">I think that's
right</a>
 
M

mmac

Oh... I thought it was dropped after the fight with Sun.
Thanks again.
Love the sig line!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top