![]() | ![]() |
| The code for a full screen exit console: (note - you can highlight the code and press ctrl+c to copy it) |
|
The code for a full screen exit console is exactly like that of a regular exit console, but for some minor changes. The changed code is highlighted in red. Please make sure you understand how a regular exit console works before trying this by reviewing the section on exit consoles here. <script language="JavaScript"> You will need to place the following code into your <body> tag like so: <body onUnload="exitcon()"> On any links on your page that you don't want the exit console to pop (if the surfer clicks the link and as a result exits your page for a new location) place the following piece of code into your link. onClick="exit=false" example: <a href="http://www.google.com" onClick="exit=false"> |
| Breaking down the various parts of the code: |
|
Here, there are no window attributes to set because you are popping the window full screen.
|
| Where to place the code: |
|
You'll need to place this script anywhere between your <head> </head> tags. Don't forget to place the 2nd snipplet of code mentioned above into your <body> tag. Finally, don't forget to add onClick="exit=false" statements to the links you don't want to trigger your full screen exit.
|
| A working demonstration of a full screen exit console: |
|
Example of a full screen exit console.
|