View Single Post
  #6 (permalink)  
Old 04-15-07, 08:46 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I just tested your code on my pc, and it worked just fine, the only thing i changed was adding single quotes around the url:
ActionScript Code:
  1. mybtn.onRelease = function (){
  2.     var url:String = "http://www.google.com";
  3.     getURL ("javascript:NewWindow=window.open('"+url+"','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
  4. };
I tested this in Mozilla Firefox, and mozilla gave me the "the website tries to open a popup" notification

Cheers

PS: are you dutch speaking? cause i found the same code on a Dutch forum, named Flashfocus. This is the url of the thread: http://www.flashfocus.nl/forum/showt...+nieuwe+window
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote