Forum Moderators: open
or
-------
<a href='javascript:onClick=parent.location.href("uploadimages.asp?zip=1");'><B>Reload</B></a>
-------
Why it's not working in Firefoex and Mozilla? in IE works fine...
Any ideas how to have something like this to work in all these browsers?
Thanks.
<a href ="#" onclick="parent.location.href='uploadimages.asp?zip=1'; return false">Reload</a>
1) href is for urls. So-called javascript-urls (beginning javascript:) can mostly be avoided.
2) Use events such as onclick to attach your javascript and always return a result (even if the event doesn't need it).
3) Be certain that you actually need javascript. In this example, you don't. The following will work...
<a href ="uploadimages.asp?zip=1" target="_parent">Reload</a>
Trying to learn the basics of a technical subject (like web development) from the internet is a bad idea - books are the way to go (most books are rubbish but they're much better than nothing).
Kaled.
So far the Internet served me well and I don't think that only doctors and lawyers use it...I was able to find useful and reliable info here.
The proof is this forum...many webmasters use this as source of information...not the only one, of course.