Click to See Complete Forum and Search --> : fullscreen and close in one link?


lbrowne
03-18-2003, 01:12 AM
I'm using basic fullscreen and close window scripts with text links. It works fine, but I'm wondering if the open and closing can somehow be combined into this same link?

Can a single link call the page to open in a fullscreen window, then when clicked on that page cause it to close?

Linda
------------------------


placed in external js...

<!--
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=auto');
}
// -->


placed in page...

<a href="javascript:void(0);" onClick="fullScreen('pagename.htm');">Full Screen</a>


<a href="javascript:window.close();">Close Window</a>