Aug
11
2011
11
2011
Javascript // Tricks
JavaScript Close Window AND Refresh Parent
Earlier today I was working with complex PHP function to update values in a database, within a popout window. The function worked flawlessly (naturally
), however I was looking for a way to have immediate display feedback on the parent page.
Enter the JavaScript close window refresh parent script…
<a id="actions" href="#" onClick="window.close();window.opener.location.reload();">Close Window</a>
Looking for more? Sorry! That’s it for this crafty little function.
Leave a comment
Subscribe to PHPDevTips!
Loading...Categories
- .Htaccess (1)
- Classes and functions (3)
- Content Management Systems (2)
- CSS (1)
- Database Security (2)
- HTML (1)
- Javascript (3)
- Miscellaneous (3)
- MySQL (5)
- PHP (13)
- Resources (2)
- SEO (1)
- Tricks (7)
- Tutorials (5)
- Usability (1)
Tag Cloud
AES_DECRYPT
AES_ENCRYPT
city state country
Content Management
database entries
database table
data conversion
data input
data management
data sanitizing
data security
date time
decrypted
domain name
encrypted data
ExpressionEngine
geoinfo
hacking
htaccess file
htmlentities
ip addresses
javascript
mamp
myadmin
mysql query
mysql server
mysql_real_escape_string
open source web development
php
php filter
query mysql
query retrieves
sanitizing
search engine optimization
security
strip_tags
time ago
time functions
tips and tricks
usability
vulnerability
wamp
web development environment
website configuration
Wordpress

An article by Bennett




