window.open

X

Xerxes

Hi,
I am attempting to open a message window, using javascript, when an
image is clicked.
When the message window opens, the underlying page (the one that
contained the clickable image) changes and shows "[object window]" with
the url of the message window.
How can I keep the contnet of the main window unchanged when the
message window opens?

<a
href="javascript:window.open('message.htm','msgWin',width='200',height='200',left='100',top='100',scrollbars='yes');"
<img src="questionmark.jpg" border="0"></a>

TIA.
 
M

Martin Honnen

Xerxes wrote:

How can I keep the contnet of the main window unchanged when the
message window opens?

<a
href="javascript:window.open('message.htm','msgWin',width='200',height='200',left='100',top='100',scrollbars='yes');"

<a href="message.htm"
target="msgWin"
onclick="window.open(this.href, this.target,
'width=200,height=200,left=100,top=100,scrollbars,resizable');">
 
R

Randy Webb

Martin Honnen said the following on 5/25/2006 11:08 AM:
Xerxes wrote:



<a href="message.htm"
target="msgWin"
onclick="window.open(this.href, this.target,
'width=200,height=200,left=100,top=100,scrollbars,resizable');">

return false;
 

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

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top