Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Linking to external .swf - resize window?

  • 09-05-2007 11:20am
    #1
    Closed Accounts Posts: 199 ✭✭


    When creating a link to a .swf on an external page, is it possible to specify the size of the window that will be opened once the user clicks on it?

    Whats the code behind this?


Comments

  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    baguio wrote:
    When creating a link to a .swf on an external page, is it possible to specify the size of the window that will be opened once the user clicks on it?

    Whats the code behind this?

    I've never used javascript to resize the main window as I think it's a nasty practise, but if you're talking about a popup window then the standard code should work:
    <script type="text/javaScript">
        var newWin = window.open("myfile.swf", "windowname", "height=300,width=300,<rest of properties");
    </script>
    


  • Closed Accounts Posts: 199 ✭✭baguio


    Thats exactly what I was looking for Eoin. Thanks.


Advertisement