PDA

Click to See Complete Forum and Search --> : javascript open window



spparikh
04-19-2001, 12:50 PM
hello...
does anyone know how to make the javascript openwindow work on a mac? my code works on a pc but not a mac?

its something like this:

getURL ("javascript:openwin('blah','blah'..);

thanks...


OR....can anyone give me some code to look at...i want to open a javascript window from my flash movie...also, how can i pass variables to this win?
thnx

Mac8myPC
04-19-2001, 01:56 PM
Try this site, it's got some good info on JScript

http://rummelplatz.uni-mannheim.de/~skoch/js/part4/part4.htm

see what that does for ya :D

mgb
04-19-2001, 03:09 PM
I use a Mac and this works a treat for me;

[!--
if(screen){
topPos=0
leftPos=0
}
function getPage(thePage,wt,ht){
leftPos= (screen.width-wt)/2
topPos = (screen.height-ht)/2
newWin1 = window.open(thePage,'aWin','toolbars=no,resizeable =no,scrollbars=no,left='+leftPos+',top='+topPos+', width='+wt+',height='+ht)
}
// --]




and yes, you can pass the arguments...

~mgb

I've had to strip the html tags or it won't post...
[Edited by mgb on 04-19-2001 at 03:11 PM]

me2222
04-19-2001, 05:24 PM
Hi spparikh,
you´re probably trying to open a window in InternetExplorer4.5 on MAC. This will never work because of a bug.
http://www.moock.org/webdesign/flash/macie/index.html