JAVA Script Code

The following Java Script code demonstrates the ability to open a floating window in a browser.

It may be customised to your own needs by altering the Blue words. Red should not be altered.

This is intended to be just a very simple Java Script example.

  • Just cut and paste this code into your HTML file
  • Place it between the following tags:
    <head>
    PUT THE JAVA SCRIPT CODE IN HERE
    </head>
  • Customise it to you own needs (don't forget to leave in ALL the red commas etc.)

 

<script language="JavaScript">

<!--

function openWin()

{

window.open('../ac_top.html','FloatingWindow',
'width=
620,height=30,toolbar=no,directories=no,
status=
no,scrollbar=no,resize=no,menubar=no');

}

//-->

</script>


To call the floating window function from a

  • Normal link

    <a href="javascript:openWin()">Floating window demo</a>

  • Form button

    <FORM>
    <INPUT TYPE = "
    button"
    VALUE = "
    Floating window demo"
    onClick = "
    openWin()">
    </FORM>

Just cut and paste the code into your HTML file. Place it where you want the normal link or button to be and customise it - remembering to leave all the red commas etc.

PLEASE NOTE:

Incorporating floating windows is an optional extra.
It is Java Script code and not associated with our Java applets in any way.
Therefore, we do not support any questions regarding this Java Script code.
Any e-mails relating to floating windows will not be answered.
AUSCOMP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
OF THIS JAVASCRIPT CODE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT. AUSCOMP SHALL NOT BE LIABLE
FOR ANY DAMAGES SUFFERED BY ANYONE AS A RESULT OF USING, MODIFYING OR
DISTRIBUTING THIS JAVASCRIPT CODE OR ITS DERIVATIVES.