Try
window.location = url;
Also use
window.open(url);
if you want to open in a new window.
More Related Contents:
- How to change the href attribute for a hyperlink using jQuery
- Smooth scrolling when clicking an anchor link
- How do I create a link using javascript?
- Highlight Menu Item when Scrolling Down to Section
- change html text from link with jquery
- jQuery doesn’t give a proper output, but gives these [closed]
- contenteditable change events
- When is JavaScript synchronous?
- Adding options to a using jQuery?
- Is it possible to listen to a “style change” event?
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘…’ is therefore not allowed access
- Avoid dropdown menu close on click inside
- How to disable text selection using jQuery?
- How to get the element clicked (for the whole document)?
- How to clear the contents of an iFrame from another iFrame
- Displaying a number in Indian format using Javascript
- Simulate Keypress With jQuery
- How can I make an AngularJS directive to stopPropagation?
- jQuery: get data attribute
- jQuery Drag/Resize with CSS Transform Scale
- I want to store Javascript array as a Cookie
- Remove table row after clicking table row delete button
- jQuery ajax load() java script not executing?
- Disable “Changes you made may not be saved” pop-up window
- JavaScript break sentence by words
- iframe Auto Adjust Height as content changes
- jQuery asynchronous function call, no AJAX request
- Javascript Highlight Selected Range Button
- Truncate paragraph first 100 character and hide rest content of paragraph to show/hide rest contenct with more/less link
- Does jQuery strip some html elements from a string when using .html()?