SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: refresh page using JS
Hybrid View
-
Jun 12, 2007, 00:30 #1
refresh page using JS
Am not i java script coder but you know sometimes is needed.
ok i have this code that opens for me a new page
Code:<a href="page.php" target="new" onclick="window.open( this.href, this.target, 'resizable=1,HEIGHT=450,WIDTH=500'); return false;">Click here!</a>';
the original page will refresh is that possible in a simple way?
thanks in advanceNever be shy to ask silly Qs
An answer is always better than none
-
Jun 12, 2007, 01:12 #2
i Found the answer thanks anyway
Code:function refresh_parent() { if (opener.progressWindow) { opener.progressWindow.close() } opener.top.location.reload(); window.close(); } //to call it with button <input type="button" value="Cancel" onClick="refresh_parent();">
Code:<a href="page.php" target="new" onclick="window.open( this.href, this.target, 'resizable=1,HEIGHT=450,WIDTH=500' ); return false;">Click here!</a>
Never be shy to ask silly Qs
An answer is always better than none
Bookmarks