Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hyperlink calling JavaScript syntax error

Posted on 2007-03-23
2
Medium Priority
?
228 Views
Last Modified: 2012-05-05
I'm not sure what's wrong with this, it's driving me batty:

<a href="javascript:" onclick="window.open('/controls/eBookPolicy.aspx','eBook Policy','toolbar=no,height=300,width=400,location=no,address=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,copyhistory=false');" runat="server"><b>HERE</b></a>

Javascript error: Invalid argument
Code 0
0
Comment
Question by:dba123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 2000 total points
ID: 18780700
<a href="#" onclick="window.open('/controls/eBookPolicy.aspx','eBook Policy','toolbar=no,height=300,width=400,location=no,address=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,copyhistory=false');" runat="server"><b>HERE</b></a>

Is perhaps better, javascript: void(0) may work but it does have some problems.
0
 
LVL 1

Author Comment

by:dba123
ID: 18781266
you know what also I didn't know.  You cannot have a space in the title, or else not all the attributes will work such as location=0, etc.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question