473,385 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can you use an IP address with window.location.href?

risk32
98
I seem to have a problem. I'm trying to use the window.location.href code to direct a webpage through an IP address. I receive no errors through IE, but the location is wrong. It's still trying to put it through a local drive on my computer instead of the IP address I'm trying to forward to.

Here's what I have: (I left the IP as 0's for the sake of my own protection)
Expand|Select|Wrap|Line Numbers
  1. <input type="checkbox" id="forgot" value="Forgot Password?" onclick="window.location.href('\\000.000.000.000\319SOS Common\Flt Mgmt\test\forgot_password.html')">Forgot Password?</input>
  2.  
When the checkbox is clicked, it does what it's supposed to, but it's going in a weird direction.

C:\000.000.000.0009SOS CommonFlt Mgmtest orgot_password.html
This is what the address bar displays after clicking the checkbox. Am I in the wrong to try to do it this way? Or is it something that I'm missing?

Thanks,
Adam
Jul 23 '09 #1
1 4445
risk32
98
I just had my slashes backwards...
Sometimes little mistakes make a big difference (I feel like an idiot)
Jul 23 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: saiho.yuen | last post by:
Hi, Is anyone know what is the difference between Location.href and Window.location.href Thanks you very much:) Saiho
2
by: Brvsra | last post by:
Javascript Experts, I know very little about javascript and could use someone's help. I have created a function to send an email, listed below is the function. The function works fine, with...
1
by: Valentin Botog | last post by:
why window.location.href or window.location javascript functions doesn't work on mac browsing IE *** Sent via Developersdex http://www.developersdex.com ***
4
by: Jeff Paffett | last post by:
I'm writing a file manager application using Ajax techniques and the client wants to be able to bookmark file searches. I send the search request to a remote server using a XMLHttpRequest and then...
3
by: André | last post by:
Hi, What's the code in VB.net for "window.location.href" in javascript ? Thanks André
11
by: whisher | last post by:
Hi. Sorry to disturb you but I can't figure out its use in this snippet (Found in many scripts about Ajax) function loadpage(page_request, containerid) { if (page_request.readyState == 4 &&...
2
by: pbd22 | last post by:
Hi. I have built a site with tabs-based navigation as a pretty major component. The tabs use window.location.href to understand where the user is and displays the appropriate tabs accordingly....
1
by: Mihania | last post by:
Permission denied exception is fired in IE6 on line(9) during the following actions . (1)<html> (2)<head> (3) <title>Simple :: documentDomain :: Cars</title> (4)</head> (5)<body> (6) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.