473,387 Members | 1,834 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,387 software developers and data experts.

document.location.href not working!?!?!?!

can someone PLEASEEEEEEEEEE tell me why this isn't working???

-------------------- function ------------------------

function goBlank(){

newlocation = "blank.asp";
top.window.document.location.href=newlocation ;
return true;
}

-------------------------- html ------------------

<td><div align="center" ><a href="javascript:;" ><span
class="popupButton" style="text-decoration: none; line-height: 24px;"
onClick="checkin();" >&nbsp;&nbsp;&nbsp;Check In
&nbsp;&nbsp;&nbsp;</span></a></div></td>

I have tried every conceivable combination and it just wont work.. I
can see the status bar flash, like its loading a new page, but the page
doesnt change..

thanks in advance...

Jul 23 '05 #1
3 23267
Lee
Brian said:

can someone PLEASEEEEEEEEEE tell me why this isn't working???

-------------------- function ------------------------

function goBlank(){

newlocation = "blank.asp";
top.window.document.location.href=newlocation ;
return true;
}

-------------------------- html ------------------

<td><div align="center" ><a href="javascript:;" ><span
class="popupButton" style="text-decoration: none; line-height: 24px;"
onClick="checkin();" >&nbsp;&nbsp;&nbsp;Check In
&nbsp;&nbsp;&nbsp;</span></a></div></td>

I have tried every conceivable combination and it just wont work.. I
can see the status bar flash, like its loading a new page, but the page
doesnt change..


You haven't showed a function named checkin().
You seem to be abusing an <a> tag just to get the pointer icon.
I tend not to trust relative pathnames.

Jul 23 '05 #2
sorry.. that was the wrong link.... here is the correct one...
----------------------------------------------------------------------------------

<div align="right"><span class="popupButton" style="text-decoration:
none; line-height: 24px;" onClick="goBlank();" >Close
Window</span></div>
-----------------------------------------------------------------------------------------------------------
I dont know why i have the <a> tag there.. I'm using CSS to create the
hand. i just removed it.. I did try absolute paths as well.. I also
tried, "document.location.href" and "window.location.href" and
"self.location.href".. I tried putting it directly in the <span tag and
creating this function... i just dont get it..

Jul 23 '05 #3
LOL.. Thank you.. you just helped me answer it.. I took the <a> tag out
and it worked.. that is weird.. I remember I had tried putting the
onClick event in the <a> tag and it didnt work.. I guess i just kept
the <a> tag there.. thanks for your help..

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Robert Oschler | last post by:
I have a comparison web page that has several iframes that contain documents from external domain web sites. Some of the web sites are "trusted". If they want to change the top level document...
1
by: kurt | last post by:
greetings, I'm working on a bookmarklet that needs to overwrite the current document with a frameset where the src of one of the frames is the current URL. What I've come up with works in Mozilla...
8
by: Phil Powell | last post by:
if (document.location.href.indexOf('?') >= 0) document.location.href = document.location.href.substring(0, document.location.href.indexOf('?')); if (document.location.href.indexOf('#') >= 0) {...
2
by: Muffinman | last post by:
Hi, I want to split the result from window.frames.document.location;, this in order to find out which page is currently opened in the specific frame. When I do it like this: var source =...
3
by: Paul Thompson | last post by:
I am working with a special tool which pre-processes the page. Using document.write, I am composing the page while it is loading, so I need to force a reprocess of the page AFTER the page loads. ...
2
by: yogesh.bhardwaj | last post by:
Hello all I am trying to modify the link URL when a user clicks on the link. Following is the code: <a onClick="document.location.href=modifyURL(this.href);" href="SOME_DYNAMIC_URL"...
9
by: alu | last post by:
Could someone explain the discrepancies within and between the stated definitions / usage of 'document.location' , 'document.URL' vs. their actual functionality? Should they be read-only when in...
1
by: captainwin | last post by:
Here's the problem: - Website is ASP.NET 1.0 - Server is Windows Server 2003 - Browser is IE 6/7 - Client requests a mail merged MS Word 97 - 2003 document on the website, and the document gets...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.