Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

javascript open window problem

Posted on 2000-04-07
1
Medium Priority
?
260 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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 article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

618 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