• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 264
  • Last Modified:

javascript open window problem

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
joannape
Asked:
joannape
1 Solution
 
BhargavaCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now