First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: shockwave | Website: http://www22.brinkster.com/thedecknician


Javascript - this is a scripting language that enhances the way your pages look and react. The 'function' part is basically saying 'this is a procedure', the name 'fullWindow' is just something that i made up, it is a 'unique identifier' which basically means - you cant call two things by the same name. As long as theres isnt anything else called the same thing, you can name your function whatever you like. After the function name must be the () characters and then a {. The body of the function goes next and then you must close the function with a }
e.g: ----- function newWindow(){ newWin=window.open('screenchooser.html', 'screenchooser', 'height=400, width=400, scrollbars=no, menubar=no, toolbar=no, status=no'); } ----- The first and last lines indentify this line of code as a function and set its unique identifier (name). The middle section is the body of the function - window.open - tells the computer to open a new window () - the brackets after it hold the information for the new window, this is divided into three parts each seperated by 'quote marks' and ,commas, - like this: 'section1', 'section2', 'section3' section1 - this is the URL of the page that you would like to open in your window section2 - this is the name of the window (not the title), the name can used to refer to this window from another section3 - this is where the features go: in any order and seperated only by ,commas, can be the following...
property (switches) - explaination
height (in pixels) - window height width (in pixels) - window width scrollbars (yes or no) - scrollbars along the side and bottom toolbar (yes or no) - the bar with your open, close, print, etc icons menubar (yes or no) - the bar which has 'File', 'Edit' and 'Help',etc status (yes or no) - the bar across the very bottom which holds shows the path of a link when you mouse over it resize (yes or no) - whether or not the window can be resized
[as well as yes and no, 1 and 0 can also be used]

another one: ----- function fitscreen(){ window.moveTo(0,0) window.resizeTo(screen.Width,screen.Height) } ----- window.move() - this simply moves the window to the co-ordinates in the brackets. 0,0 refers to extreme top/left window.resizeTo() - this resizes the window to the co-ordinates in the brackets, absolute co-ordinates such as (300,50) could be used or as i have - a relative size, in this function the available screen width and height, are used. This basically means that the window will fill your screen no matter how big or small it is.

A working example of this which i made can be found here

» Level Intermediate

Added: 2001-10-16
Rating: 6.85 Votes: 41
(10 being the highest)
» Author
No details available.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.