Solved

Hyperlink calling JavaScript syntax error

Posted on 2007-03-23
2
226 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 500 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

628 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