Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.close works in mozilla not explorer

Status
Not open for further replies.

dessie1981

Programmer
May 9, 2006
116
0
0
GB
Hi Everyone

Anyone any ideas why the below code work's in mozilla firefox and not in i.e. 5

Code:
 echo '<p align ="center"<a href="javascript:window.close()">Close</a></p>';

Regards
Dessie
 
your tag isn't closed. also, use a return false:

Code:
<p align ="center"[red]>[/red]<a href="javascript:window.close()[red]; return false;[/red]">Close</a></p>



*cLFlaVA
----------------------------
[tt]"quote goes here"[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
thanks, working now, cant believe i did not spot that open tag.


Regards
Dessie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top