Forum Moderators: open

Message Too Old, No Replies

javascript not working

please help with this

         

fried_worms

9:48 pm on Jul 26, 2004 (gmt 0)

10+ Year Member



when i try to click on some links that i used to be able to i go nowhere. at the bottom of my screen it says javascript:void what can i do to fix this problem and access the pages that i used to be able to?

Philosopher

10:01 pm on Jul 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are these links on your pages? Or are they on links on outside webpages?

It sounds like..

1) The js code has been removed or edited in some way
2) You have js disabled in your browser
3) JS function is being hindered in some other way (by possible a pop-up blocker, etc.)

fried_worms

12:14 am on Jul 27, 2004 (gmt 0)

10+ Year Member



it may be our pop up blocker. is there any way to go around that and not mess up the pop up blocker?

Philosopher

2:08 am on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, some pop-up blockers will allow you enable pop-ups, etc. for certain sites. That feature varies with the particular blocker you are using so you will need to check the options for your particular blocker.

fried_worms

3:02 am on Jul 27, 2004 (gmt 0)

10+ Year Member



i tried doing that and it still says that the javascript is void. is there any thing else that i can do?

Philosopher

2:50 pm on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why don't you try temporarily uninstalling the pop-up blocker. At least that way you will know if that is the cause. If the script starts working again, you may want to either try a few other approaches to get the links to work with your pop-up blocker or find a new one that you can customize a bit more.

john_k

3:04 pm on Jul 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Post the html for the link.

I am guessing that it looks something like this:


<a href="javascript:void" onclick="dosomething();">click here</a>

Also, by "I go nowhere," do you mean that absolutely nothing happens, or do you mean that you get some type of page-not-found message?

If you do in fact mean that absolutely nothing happens when you click the link, then there are a few possible causes:
- There is no onclick attribute.
- There is an onclick attribute, but executing the code in it doesn't cause a document.location change.
- An error is occurring in the code for the onclick attribute.
- The onclick code doesn't return false, so the browser gets confused.
- The onclick code is trying to open a new window and you have a popup blocker that prevents it.
- Javascript is disabled on your browser.
- The onclick code is being interfered with in some other way.

fried_worms

8:51 pm on Jul 27, 2004 (gmt 0)

10+ Year Member



i tried to stop my pop-up blocker and was able to get into the sites that i had trouble with. thanks for all your help.