How to force a page to go to another page using javascript ?



How to force a page to go to another page using javascript ?..

Answer / Sachin Kumar Sharma

To force a page to navigate to another page, you can use the 'window.location' object. For example: window.location.href = 'newpage.html';

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What is the relationship between Java script, J script and ECMA script?

1 Answers  


What is difference between api and library?

1 Answers  


What is the difference between JavaScript and jscript?

2 Answers  


What is a reverse string?

1 Answers  


In which location cookies are stored on the hard disk?

1 Answers  


Why javascript is dangerous?

1 Answers  


Define event bubbling?

1 Answers  


What is the role of javascript in html?

1 Answers  


What is the difference between an Anonymous Function and a named function?

1 Answers  


How to create an object in javascript?

1 Answers  


Can you access Cookie using javascript?

1 Answers  


If we want to return the character from a specific index which method is used?

1 Answers  


Categories