PDA

View Full Version : Simple getURL script not working... I need to set preferences too!


laura_83
01-18-2006, 09:28 AM
Hello,

I need to apply a simple getURL to a button, but I also need to set the preferences of the window opened..
E.g.

on (release) {
getURL ("javascript:spawnWindow('http://www.laura-brown.co.uk/bradleys_review.html','Bradley's Spanish Bar - Review','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=300 ')");
}

Can anyone tell me where i am going wrong?
Laura

laura_83
01-18-2006, 09:55 AM
ok, not to worry - got it sorted.
I used the below code instead.....
on (release) {
getURL("javascript:NewWindow=window.open ('pop1.html', 'myWindow', 'width=468, height=60, left=400, top=200, toolbar=No, location=No, scrollbars=No, status=No, resizable=No, fullscreen=No'); NewWindow.focus(); void(0);");//Note from getURL to here is all one line
}