?
Solved

javascript open window problem

Posted on 2000-04-07
1
Medium Priority
?
259 Views
Last Modified: 2008-02-01
I'm trying to open a new window using JavaScript and send a querystring consisting of two variables. This works fine in IE but not in Netscape. Code below:

   <DIV CLASS="ERROR">Warning: <% = name %> is illegal in some countries. To see a list of these countries, click <A CLASS="ERROR" href="javascript:Start('illegalCountries.asp?productCode=<% =productCode%>&name=<% =Server.URLEncode(name) %>')";>here</A></DIV>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin hiding from old browsers
// This javascript function opens windows on links

function Start(page) {
        OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,status=yes,scrollbars=yes,resizable=no,width=400,height=300");
}

function closescreen()
{
        self.close();
}


//-->
</SCRIPT>

Can anyone help?
0
Comment
Question by:joannape
[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
1 Comment
 
LVL 2

Accepted Solution

by:
Bhargava earned 300 total points
ID: 2694156
try

href="javascript:void(0)" onclick="Start('illegalCountries.asp?productCode=<% =productCode%>&name=<% =Server.URLEncode(name) %>')";

if fails let me know what happens when you do this.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

770 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