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

HELP with window.open, I keep getting Filedown load dialog box!

Status
Not open for further replies.

tincan56

MIS
Feb 18, 2002
24
US
Hallo. HELP!!!!

I have an intranet application and I want to open a new window that will lead the users to an exteral website. However I keep getting File DownLoad dialog box when trying click on the link that will open the window!! AHHHH.

Here is my code. Please let me know what am I doing wrong?

I really appreciated for your help!

********************************************
function myVoid() { }
function openWin(){
windowHandle = window.open('}
*********************************************
<h2><IMG height=14 src=&quot;../events/images/blue.gif&quot; width=14>&nbsp;
<A HREF=&quot;#&quot; onClick=&quot;this.href = 'javascript:myVoid()';openWin()&quot;></a></h2>
 
First, this:

<A HREF=&quot;#&quot; onClick=&quot;this.href = 'javascript:myVoid()';openWin()&quot;>

should be:

<A HREF=&quot;#&quot; onClick=&quot;openWin()&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top