|
-
Opening a browser window (javascript)
Hello again, another question!
I have a little window open code (that works in normal HTML).
Here's the code:
-----------------cut
Nowe=null;
function Otworz(s,w,src) {
var Xpos=((screen.width/2)-(s/2));
var Ypos=((screen.height/2)-(w/2));
Nowe=window.open('main.html','',
'toolbar=no,
menubar=no,
location=no,
personalbar=no,
scrollbars=no,
status=no,
directories=no,
resizable=no,
width='+s+',height='+w+',
left='+Xpos+',top='+Ypos);
Nowe.focus()
}
-----------------cut
It works perfectly in browser (as HTML), but when inserted into 3DFA as Javascript element, it doesn't seem to work (but "Compile" button in Javascript window reports no problems...). What shoul i do? I can't go for "Open URL", beacuse it'll be an presentation (EXE), not the web page...
HELP!
Thanks in advance..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|