Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup script help using createPopup() - XP SP2

Status
Not open for further replies.

scriggs

IS-IT--Management
Jun 1, 2004
286
GB
I use a pop up window on a small web based app we distribute to customers on CD and have fallen foul to SP2 popup blocker.

I think i have found a solution, which is to detect IE and then use createPopup(), else use window.open. My problem is I dont know how to use createPopup() - any help please. This is what I have so far...

Code:
<SCRIPT LANGUAGE="JavaScript">

function popUp(URL) {
if(navigator.appName == "Microsoft Internet Explorer")
	{
	window.createPopup(URL)
	}
else
	{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=600,left = 660,top = 300');");
	}
}

</script>
 
Thanks jemminger, that link put me on the right track and I have a working solution that identifes the browser and redirects so that popups work. now just need to work out the exact syntax for createPopup()!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top