|
-
Hi,
The following script opens a browser window, but the main browser also goes to a different location:
Code:
getURL("javascript:window.open('scores.php','Golf','width=320,height=240,scrollbars=yes')");
How do I prevent that the main browser goes to another url? (the url changes in "javascript:window.open.. etc etc)
Thanx in advance,
Zander
-
opening multiples
Hi,
here's code to open as many window as you require, paste this into your html doc above the body tag:
<SCRIPT LANGUAGE="JavaScript">
<!--
function newwinPAGENUMBER1()
{
window.open('yourpage.html','','scrollbars=yes,res izable=yes,width=375,height=375');
}
function newwinPAGENUMBER2etc()
{
window.open('yourpage.html','','scrollbars=yes,res izable=yes,width=375,height=375');
}
</script>
in flash on your button:
on (release) {
getURL ("javascript:newwinPAGENUMBER1()");
}
So simply duplicate the javascript function change the PAGENUMBER1 to whatever number you need, do the same for the flash button.
Does that make sense???
regards
BenG
-
BenG... more flexability?
function newwin(page)
{
window.open(page,'','scrollbars=yes,resizable=yes, width=375,height=375');
}
Then use getURLin Flash
getURL("javascript:newWin('" + myPage + "')";
You could even take that a step further and pass in a string like
"myPage.html:375:200"
Then the javascript could split the incomming string and pass up the page, width, and hieght to newwin.
-
nice idea
I'll give that a try for my latest project 
cheers
BenG
-
Thanx
Thanx for your help guys!
Zander
-
page undefined
RAMpage,
sorry for dredging this back up, just needed to implement it.
I tried your newwein(page) version, but it comes up with error 'page' undefined.... any ideas?
BenG
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
|