troubleshooting Question

Java Script Code Help to work with Mozilla Browser

Avatar of CHCCIT
CHCCITFlag for United States of America asked on
Web Languages and StandardsJavaScriptWeb DevelopmentWeb Browsers
21 Comments1 Solution895 ViewsLast Modified:
I need help in changing a code to make this menu work in Mozilla.
Right now this process only works in Internet Explorer and would Like to make sure this works in Mozilla as well.
function open_win_size(url,w,h) {
	agent = navigator.userAgent;
	windowName = "Sitelet";
		
	params  = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=" + w + ",";
	params += "height=" + h;
		   
	win = window.open(url, windowName , params);
		
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
		win = window.open(url, windowName , params);
	}	
	if (!win.opener) {
		win.opener = window;
	}
	return;
};
4695724610894function open_win_size(url,w,h) {
	agent = navigator.userAgent;
	windowName = "Sitelet";
		
	params  = "";
	params += "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=" + w + ",";
	params += "height=" + h;
		   
	win = window.open(url, windowName , params);
		
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) {
		win = window.open(url, windowName , params);
	}	
	if (!win.opener) {
		win.opener = window;
	}
	return;
};
251261154913000
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 21 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 21 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros