Mishigen
Mishigen

Reputation: 1261

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 pageload function or load a page from javascript

Upvotes: 1

Views: 930

Answers (4)

machineghost
machineghost

Reputation: 35790

window.location.reload()

And just for future reference, you could have found that in 10 seconds by Googling "javascript reload".

Upvotes: 0

Brij
Brij

Reputation: 6122

you can call __dopostback javascript method:

__doPostBack('ControlId',''); 

http://aspalliance.com/895_Understanding_the_JavaScript___doPostBack_Function.all

Upvotes: 0

YOU
YOU

Reputation: 123831

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.

Upvotes: 0

rahul
rahul

Reputation: 187040

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.

Upvotes: 1

Related Questions