page load from javascript
i m building a website in asp.net using c#.. can nyone tell me ..is it possible to either call a pa开发者_开发百科geload function or load a page from javascript
Use
window.location
Returns a Location object, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL.
Do you want to go to another page like from yourpage.com to example.com?
If yes, you can use location.href="http://example.com"
in javascript.
you can call __dopostback javascript method:
__doPostBack('ControlId','');
http://aspalliance.com/895_Understanding_the_JavaScript___doPostBack_Function.all
window.location.reload()
And just for future reference, you could have found that in 10 seconds by Googling "javascript reload".
精彩评论