Solved

Hyperlink calling JavaScript syntax error

Posted on 2007-03-23
2
217 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
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 total points
Comment Utility
<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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now