Is there any way to detect HTTP or HTTPS and then force usage of HTTPS with JavaScript?  I have some codes for detecting the HTTP or HTTPS but I can't force it to use https: .  I'm using the window.location.protocol property to set whatever...
I have the following javascript redirect code followed by some more code.  window.location.href = '/someurl'; alert('hello'); alert('hello again');   This causes a browser inconsistency.  In firefox, the first alert is visible...
Essentially what I'd like to do is something to the effect of this:  window.location.href = "some_location"; window.onload = function() {   alert("I'm the new location and I'm loaded!"); };   Is there any way to have a cal...
how to sync window.top.location and window.location?...
I am trying to pass a php variable into a java script window.location that returns a user to the current list view after deleting an item from the database. I can't seem to get the syntax correct.  Code:  function confirmation(a) { var currString...
I have a JQuery Mobile application with many pages linked to each other. If I put a link on page A and set the href to page B, this script works fine:  $(document).on('pageshow','#pageB',function(){     alert('hello!'); });...
I'm trying to selectively disable window.location, using Greasemonkey, at the start of the document.  I don't want to fully disable javascript, just disable some redirects done with javascript.  They look like this:  window.location = "un...
I have a url similiar to this:  www.mysite.com/products/   I was using this to test against the pathname:  if (/\/products\//.test(window.location)) { _gaq.push(['_trackPageview', '/products/landing']); }   But the problem I was runni...
I'm new to this so please bear with me. I am trying to write a chrome extension that does the following:   Detect www.website.com/anypage.html. If this website is detected, then do the following. Don't load the URL.  Instead, write a blank do...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.