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

Error message with javascript

Status
Not open for further replies.

paulcarey

Programmer
Jun 15, 2001
45
GB
The following code results in the new page opening but the launch page displaying '[object]'. When using view source [object] is all there is.

Any ideas?

<a href=&quot;javascript:window.open('testwindow.asp','a','toolbar=no,statusbar=no,scrollbar=no')&quot;>
<img src=&quot;del.gif&quot; title=&quot;Click to delete entry&quot;>
</a>
 
Try this...


<img src=&quot;del.gif&quot; title=&quot;Click to delete entry&quot; onClick=&quot;javascript:window.open('testwindow.asp','a','toolbar=no,statusbar=no,scrollbar=no')&quot;>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Try this way also.
Code:
<a href=&quot;javascript:void(0)&quot; onclick=&quot;window.open('testwindow.asp','a','toolbar=no,statusbar=no,scrollbar=no')&quot;>
<img src=&quot;del.gif&quot; title=&quot;Click to delete entry&quot;>
</a>

________
George, M
 
And in first place comes shaddow!!!!!!

Beautiful...thanks everyone for your time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top