I want to test if a word ["sublanguageid-all" to be specific] is present in the current address of the page using an 'if' condition.
I've tried /sublanguageid-all/g, but I'm not able to ...
For some reason when I set window.location.href = it opens another window.
window.location.href = 'https://MyDomain.com/Checkout/Purchase.asp';
It doesn't happen in my development environment, only production. The only only thing different that ...
[edit] I am NOT using jquery in this app.
Looking for a way to force preexisting links to open in a new window. But I only want to Apply this behavior to ...
I need to make a little JS app to scroll automatically through a list of URLs. I've chosen to have the functionality in a pop-up, for various reasons.
The syntax to ...
I have some unit tests for a function that makes use of the window.location.href -- not ideal I would far rather have passed this in but its not possible in the ...
I have a page with several Iframes, I open a popup with a form in it from within the iframe and the popup needs to refresh the opener.parent when the form ...
i'm stuck on something where i want the Test 1 and Test 2 links to pop-open in a new window, not target=_blank into a new window so the pop-up doesn't open ...
So i have a form, and onsubmit="return reg_check(this)" where reg_check() is a javascript function in the header which is supposed to check the form data, and since one of its tasks ...
window.opener.location.href = newUrl not working in IE 6
I want to refresh my parent window from popup window to some different URL, But above javascript code is not working.
Please let me ...
The window.location is an object. But when you execute window.location.toString() it converts the object to the equivalent to window.location.href.
My question is how? And can I set up objects to a similar ...
to reload a page (without re-POSTing) is not bad practice, what should we make of JSLint's "Weird assignment" complaint?
EDITwindow.location.reload() is not suitable when you don't want to ...
I would like to use HyperLink of ASP.Net to open a new window when I click on it. I can not hard code the NavigateUrl, instead I have to use 'onclick' ...
I am using below mentioned script to get href of new opened window, but its not working
Browser FF 7, IE 9, WIN 7
Can someone please let me know what's wrong ...
How to make a window.location.href judge?
if window.location.href not match ?search=, make the current url jump to http://localhost/search?search=car
my code not work, or I should use indexOf to make a judge? Thanks.
I am opening a excel file with javascript using window.location.href('URL');
It is working fine in Firefox, Safari, but in IE8 it is showing a blank screen and then a file dialog. What's ...
Thank you for your replies. Tried taking out the .href and IE still showing 404 error page not found. This code has been working for years in Firefox and up until recently was working in Internet Explorer. How it works, When you click Add to the cart button, it just shows the same page and adds the product to the cart. ...
If you have access to the server-side code, such as PHP, you can use the 'header' function to redirect. In PHP, document.location.href is what I've typically used and haven't had any problems with browser compatibility. If you change the document location, it will abort script processing since you're moving to a new page.
Hi dc dalton, I cut down the code and made things confusing. The web page displays a form. If the user wants to they can complete the form and click the Submit button. If they don't they can click "Cancel" to pushed to another page. That was me testing...ultimately I will be producing some code like this: There is a record ...