Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[object Window]? with window.open()

Status
Not open for further replies.

cfgcjm

Programmer
Oct 30, 2007
21
US
I'm using expression'07 and i have to enter my javascript by way of the "add hyperlink" interface. So i'm entering this code

Code:
javascript:window.open("/timestds.htm",null,"height=251,width=259,status=yes,toolbar=no,menubar=no,location=no");
[code/]

the link works but on the original page of the link it has the script in the address bar and displays [object Window]. How do i correct this so the page on which the link is clicked does not change.

thanks!
Chris
 
Append this statement after it.
[tt] return false;[/tt]
 
I'm not quite sure where you want me to put it in this code

<li class="style1">
<ahref="javascript:window.open(&quot;/timestds.htm&quot;,null,&quot;height=251,width=259,status=yes,toolbar=no,menubar=no,location=no&quot;);">Time Standards</a></li>
 
<ahref="javascript:window.open(&quot;/timestds.htm&quot;,null,&quot;height=251,width=259,status=yes,toolbar=no,menubar=no,location=no&quot;);">Time Standards</a>
[tt]<a[highlight] [/highlight]href="#" onclick="window.open('/timestds.htm','','height=251,width=259,status=yes,toolbar=no,menubar=no,location=no');return false;">Time Standards</a>[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top