| | |
navigation on button click
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
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";
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";
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
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. I don't accept change; I don't deserve to live.
![]() |
Similar Threads
- Tutorial: Photoshop: create a transparent navigation bar (Graphics and Multimedia)
- Sort code snippets by last comment (DaniWeb Community Feedback)
- navigation within multiple form in VB.NET (VB.NET)
- Cannot access certain websites (Viruses, Spyware and other Nasties)
- Problem - IE Synchronize navigation (Web Browsers)
- new guy looking for opinions on web site (IT Professionals' Lounge)
- VB6 submit button sends information to BBChat (Visual Basic 4 / 5 / 6)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: how to get scroll position of a window
- Next Thread: @@Help with getting values from textboxes@@
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array beta browser captchaformproblem cart checkbox child class close codes column css date debugger decimal dependent design disablefirebug dom download editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming prototype redirect runtime safari scale scriptlets scroll search security select session shopping size software toggle unicode variables w3c web wysiwyg \n






