How to use JavaScript to refresh the screen (multiple methods)
1. Refresh the parent window with JavaScript
<SCRIPT>
{
This. style. display = 'none'; document. getelementbyid ('_ 33_71_open_text '). style. display = 'none'; document. getelementbyid ('_ 33_71_closed_image '). style. display = 'inline'; document. getelementbyid ('_ 33_71_closed_text '). style. display = 'inline ';
} "Src =" http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif "alt =" "align =" TOP "> {
This. style. display = 'none'; document. getelementbyid ('_ 33_71_closed_text '). style. display = 'none'; document. getelementbyid ('_ 33_71_open_image '). style. display = 'inline'; document. getelementbyid ('_ 33_71_open_text '). style. display = 'inline ';
} "Src =" http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif "alt =" "align =" TOP "> function reflushparent ()...{
Window. opener. Location. Reload ();
}
</SCRIPT>
2. Refresh this window with JavaScript
<SCRIPT>
{
This. style. display = 'none'; document. getelementbyid ('_ 29_66_open_text '). style. display = 'none'; document. getelementbyid ('_ 29_66_closed_image '). style. display = 'inline'; document. getelementbyid ('_ 29_66_closed_text '). style. display = 'inline ';
} "Src =" http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif "alt =" "align =" TOP "> {
This. style. display = 'none'; document. getelementbyid ('_ 29_66_closed_text '). style. display = 'none'; document. getelementbyid ('_ 29_66_open_image '). style. display = 'inline'; document. getelementbyid ('_ 29_66_open_text '). style. display = 'inline ';
} "Src =" http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif "alt =" "align =" TOP "> function reflushme ()...{
Javascript: location. Reload ();
}
</SCRIPT>
3.Javascript refresh this window (new)
<Script language = 'javascript '>
VaR currenturl = This. Location. href
VaR currentquery = This. Location. Search
Window. Location. href = currenturl + currentquery
</SCRIPT>
4.Javascript refreshes this window and adds a parameter
<Script language = 'javascript '>
VaR currenturl = This. Location. href
VaR currentquery = This. Location. Search
Window. Location. href = currenturl + currentquery + "& language = English"
</SCRIPT>