Stop pop-up

  Woody Ham 01 Feb 09

I use Javascript to close a window but it creates a pop-up saying browser is trying to close window etc. Can i prevent this popup from appearing and just close the window?

  Forum Editor 02 Feb 09

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

  Woody Ham 02 Feb 09

Many thanks. The line that closes my window (and puts up the popup is:

<a href="JavaScript:window.close(blank)">Close this window</a>

Where do I put your line: just after mine? If so, it does seem to help. Sorry if I'm being thick!

  Forum Editor 02 Feb 09

for your line.

  Woody Ham 02 Feb 09

I have substituted it but it still creates the popup. This is my code for the document. I use Dreamweaver with only reasonable knowledge of writing HTML.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "click here">
<html xmlns="click here"><!-- InstanceBegin template="/Templates/tour.dwt" codeOutsideHTMLIsLocked="false" -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<link href="../St Dunstans.css" rel="stylesheet" type="text/css" />

<!-- InstanceBeginEditable name="Main" -->
<table width="650" border="5" cellspacing="2">
<th height="254" bgcolor="#CCCCCC" scope="col"><table width="600" border="2" cellspacing="2" bgcolor="#CCCCCC">
<th width="290" bgcolor="#CCCCCC" scope="col"><div align="left">Title</div></th>
<th width="292" rowspan="4" valign="top" bgcolor="#CCCCCC" scope="col"><div align="center"><img src="images/organ.jpg" alt="Organ" width="397" height="298" /></div></th>
<td bgcolor="#CCCCCC">Organ</td>
<td bgcolor="#CCCCCC"><strong>Description</strong></td>
<td height="87" valign="top" bgcolor="#CCCCCC"><div align="left">The Banton organ was built and installed in the Heathside Crescent church in the expectation that it would be moved to this church. A third manual was added shortly before the move. </div></td>
<td height="25" colspan="2" bgcolor="#CCCCCC"><div align="right" class="adventheading">
<a href="javascript:window.opener='x';window.close();">Close</a>
<!-- InstanceEndEditable -->
<!-- InstanceEnd --></html>



This thread is now locked and can not be replied to.

Should I upgrade to Windows 10? 8 reasons why you should upgrade to Windows 10... and 2 why you…

We are being sold the ability to spend money we don't have. And we love it

Microsoft claims its new VR lens system is better than Oculus Rift's

Apple Music preview: Why Spotify should be scared of Apple's impressive new music-streaming service

We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message