The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Create a 'print' button with Javascript e.g. for window.open() without toolbars
Hello.
Here is a misc routine to create a convenient 'print' button on a page where there is none in the browser window due to the attributes assigned in e.g. 'window.open()'. When Javascript is not enabled, the browser toolbars are automatically visible so this print routine would be ignored. Code:
<script type="text/javascript"> <!-- function print_page() // Create a print button only if Javascript is enabled e.g. for a new window created via 'window.open(...)' with no browser window features. { if (window.name == "new_window") { document.write("<form><input type='button' value='print' onclick='print()';> </form>") } } print_page() //--> </script> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|