Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 6th, 2003, 09:07 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You should also close the document, not always necessary but can be with more complicated documents:
Code:
winNew.document.write("<input type='button' onclick='window.close()'; value='Close Window / Fenster Schliessen / Fermer fenêtre / Venster Sluiten'");
winNew.document.close();
--

Joe
 
Old November 6th, 2003, 12:03 PM
Authorized User
 
Join Date: Aug 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for all your help guys ... :D

Dont know what went wrong the first time i corrected the > onto the code, Imar and pgtips.
Maybe the server hadnt updated the page correctly...strange things happen.

Anyway, it works now thanks to you guys.
The "winNew.document.close();" doesnt make any difference to the webpage, Joe, but i put it on underneath my code anyway.

Can someone still tell me what to put in the space:
window.open("about:blank", "new", "fullscreen=yes", "scrollbars=yes", "..."
to include the 'X' on the window on the top right corner to close window also ("menubar=yes"?)

Thanks from me, i'll sign off now.... got what i want ;)

 
Old November 6th, 2003, 12:27 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

http://msdn.microsoft.com/library/de...ence_entry.asp

Look up window.open. You can't have some options with fullscreen.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
Window.close muthuprakash83 Javascript How-To 0 August 7th, 2006 12:35 PM
window.close() failing to...well...close! mheathcote Javascript How-To 2 October 31st, 2005 03:02 PM
Close Parent window on opening child window pkdev Javascript How-To 8 April 11th, 2004 12:06 PM
How do i close pop-up window?: window.close () Burton HTML Code Clinic 2 September 8th, 2003 05:40 AM
How to detect window Close (X) Button cyberjames2003 Javascript How-To 2 July 27th, 2003 08:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.