truman69 0 Report post Posted March 23, 2005 i have a mp3player for my site but i want it to be in a differnt Window so when you click the link for the mp3player it should open in a new window but i want to be able to make the window the same size as the mp3player and not the full screen can any 1 help hereso want i code that will open a link in a new window but i want to be able to make the window the size i wantthank you if you can helpchris Share this post Link to post Share on other sites
no9t9 0 Report post Posted March 23, 2005 <a href="javascript:window.open(url,'name','height=500,width=400,left=100, top=100,resizable=no,scrollbars=no,toolbar=no,status=no');">click</a>This is probably what you are looking for. It is javascript. But, personally, I hate it when people do popups on a site. There should be other options to do this so there isn't a popup. Like using javascript to position the mp3player in the corner of the window. Share this post Link to post Share on other sites
truman69 0 Report post Posted March 23, 2005 hey thanks but it dont seem to work Share this post Link to post Share on other sites
alexia 0 Report post Posted March 23, 2005 You can Do this by JS CodeFor This Look Macromedia Dreamweaver MX 2004in this software you can do this very easy this software has many options for open new windows in many size Share this post Link to post Share on other sites
sammaye 0 Report post Posted March 24, 2005 this may sound like an obvious question; but have you checked any pop up killing software or have you got windows xp sp2...cos both will stop the pop up from workingand I think there is an error here (I aint done this code for ages) <a href="javascript:window.open(url,'name','height=500,width=400,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no');">click</a> but where URL is without the '' I believe that is wrong.....it should be like name with '' around it shouldnt it...I swear I remember doign it like that Share this post Link to post Share on other sites
ArchaicAngel 0 Report post Posted March 25, 2005 i have a mp3player for my site but i want it to be in a differnt Window so when you click the link for the mp3player it should open in a new window but i want to be able to make the window the same size as the mp3player and not the full screen can any 1 help here so want i code that will open a link in a new window but i want to be able to make the window the size i want thank you if you can help chris 63385[/snapback] Hey there, I've actually had to deal with this problem before and I know how difficult it is to find specific codes for a specific purpose. I think I might know of a script that will work the way you want it to at CodeBrain this will enable you to use a normal link (text, button, image, ect.) to open a new window that will resize itself to the content of the page. Hopefully this is the type of script you are looking for. Later, Share this post Link to post Share on other sites
no9t9 0 Report post Posted March 28, 2005 works for me. and yes, there are quotes around the url. (I thought that was obviuos). Share this post Link to post Share on other sites