Solved

javascript open window problem

Posted on 2000-04-07
1
250 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
1 Comment
 
LVL 2

Accepted Solution

by:
Bhargava earned 75 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
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…

762 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

20 Experts available now in Live!

Get 1:1 Help Now