How can I use JavaScript to refresh a webpage when a value gets changed?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

You can write document.location.reload(true); in onchange event for the control, the value of which when changed, the page is to be refreshed.
Comments

IT Professional Trainer with 18 years of experience in IT Industry

In JavaScript, you refresh the page using document.location.reload(). You can add the exact keyword to force the reloaded page to come from the server (instead of cache).
Comments

Software Engineer

'location.reload()' to refresh page. May I know what value is it a dropdown or input field value or cookie value?
Comments

IT Professional Trainer with 15 years of experience in IT Industry

If you want to change the value of a page at that time, you can use javascript event function elName.addEventListener(eventName, callback, true), and if you want to page reload through javascript then you can use window.location.reload();
Comments

View 2 more Answers

Related Questions

x eskor plus two x plus one
what is the question? can't understand the meaning.
Ankur
0 0
8

Which skills do i require to be an better ui developer?

Mainly HTML, CSS, JavaScript and Advance need Javascript Framework like AngularJS, Angular, Ember JS, React JS and so and so.
Soumya Ranjan
What is the best way to learn JavaScript?
Learn Java Script Basics Learn OOPS and Design pattern in JavaScript Learn Jquery , DOM , JSON etc. Try Framework like ReactJS / AngularJS Refer to online tutorial or get fast track training...
Umamahesh
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

What Is Mean Stack? Why Mean Stack Is Popular Now?
Mean Stack is standing for MongoDB, ExpressJS, AngularJS and NodeJS. These four javascript solutions create a high performing web application. Mainly JavaScript is the frontend language. It’s working...

Always keep learning
If you are in IT, in order to survive you have keep reading and keep polishing your skillsets and this you can do everyday by taking small steps like learning and implementing them. There are so many...

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

Angular 1 vs Angular 2
Angular team has released the angular 2, which has drastically change the way programmers interact and work with Angular framework in the past. In this post I will tell you the common changes made by...

Inversion of Control
Problem You have classes that have dependencies on services or components whose concrete type is specified at design time. In this example, ClassA has dependencies on ServiceA and ServiceB. Figure 1 illustrates...

Recommended Articles

Here are the top 6 must have skills for every Web Designer : Technical Skills Web designers undoubtedly require very strong technical skills. They must have hands on using Web designing software and tools, such as Adobe Dreamweaver, Fireworks, Photoshop, Flash etc. In addition to the knowledge of design...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Looking for Java Script Training classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you