0

hi,
i have a form with 3 radio buttons and one submit button.on clicking submit i want to navigate to page corresponding to the radio button selected.How can i achieve this?..

3
Contributors
3
Replies
4
Views
9 Years
Discussion Span
Last Post by ~s.o.s~
0

Hi
use document.location.href property to achieve this.
suppose u want to navigate to page example.html then u can do like this
document.location.href="example.html";

0

hey thx..i figured it out..usin window.location="url"..it wrks the same way u say..

0

Though it works, it's an incorrect way of doing things. location property of the window object is an object, not a string. The location object in turn has an href property of type string and hence location.href = "url"; is the correct, location = "url"; is not.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.