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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open new window problem..

Status
Not open for further replies.

jeanpaul

Technical User
Joined
Aug 13, 2000
Messages
20
Location
SE
I try to open a new window with this link but it returns an error: return statement out of function.

Here's the code;

<A onClick=window.open(' HREF=&quot;javascript: return false&quot;>

Please submit a correct code. I am very bad at javascript.

Thanks!
 
Try this .. instead of the code HREF=&quot;javascript: return false&quot; try

HREF=&quot;javascript:void(0)&quot;

Greg.
 
and btw, the cleaner/easier/proper/more logical way to do so would be :
<a href=&quot;javascript:window.open(....)&quot;>...</a>
no onclick required as it's already handled here
 
Watch out using window.open - the launching page will often wait for a response causing it to go blank ([object]).
 
Hi,

jjdm, I was reading your response there... could you explain this to me? I think I'm having the exact problem which you described in your message but I have no idea how to solve it. I posted my problem a couple posts before but no one responded. :(

I'd appreciate any help, even if it were some direction on where I could read up on it myself. Thanks!

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top