Top "Location-href" questions

JavaScript run in a browser has access to both the Document.

Having links relative to root?

Is there a way to have all links on a page be relative to the root directory? For example, on …

html location-href
How to pass variable to href in javascript?

How to pass this variable value here? Below code is not working. And all other discussions on Stackoverflow are unclear. &…

javascript href location-href
FancyBox close from within iframe and take parent page to the link

I found applying the following function to a links onclose works to close Fancybox from within an iFrame: parent.$.fancybox.…

jquery fancybox href location-href
Uncaught TypeError: Undefined is not a function on indexOf

I currently have this code to check the website URL GET options for a specific ID, but whenever this code …

javascript get typeerror indexof location-href
Reload a page with location.href or window.location.reload(true)

I need to reload a page in a success of an ajax call. I'm seeing some code (not mine) and …

javascript reload window.location location-href
Call django urls inside javascript on click event

I got a javascript onclick event inside a template, and I want to call one of my Django urls with …

javascript jquery django location-href
create dynamic link based on text input field

I'm trying to make a text input field where visitors can enter a value and then hit go or submit. …

javascript php forms hyperlink location-href
How can I redirect from inside an iFrame?

I use website redirect page window.location.href , its working fine on all traffic also on iframe traffic. <script …

javascript iframe url-redirection location-href
Legacy code: window.parent.location.href="https:/home"

I have inherited some code from our former developer and I found this piece of code. <?php if($this-&…

javascript redirect location-href window.parent
jQuery dynamically change onclick location.href

This works in firefox but doesn't do anything in IE: $("#_results").autocomplete({ source: data, minLength: 0, select: function(event, ui) { $("#log").…

javascript jquery location-href