devxlogo

A New Way to Deal with Popup Windows

When creating a popup window from a hyperlink or button, I often get an error because I try to do it myself and the author has hard coded the same behavior. A little consideration for advanced users will avoid irritating them.

Instead of:

 Prompt

Use this:

 Prompt

This is another way:

 PromptshowWin.js:function showWin(href) {	window.open(href, "myWin","width=780,height=540,left=10,top=10,status=no,toolbar=yes,_menubar=no,location=no,scrollbars=yes,resizable=yes",false);	return false;}

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  Seven Service Boundary Mistakes That Create Technical Debt

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.