Welcome to WebmasterWorld Guest from 54.167.144.170

Forum Moderators: open

a href="javascript:void(0)"

neat trick, but is it buggy in NN 6?

   
6:28 pm on May 17, 2002 (gmt 0)

10+ Year Member



Today just isn't my day for Netscape. I'm using a fairly standard trick....

<a href="javascript:void(0)" onClick="loadDetails( 'fooBar' )">

my JS is like this:

loadDetails( fileName ) {
detframe = document.getElementById( "details" );
detframe.src = "details.jsp?file=" + fileName;
[mysterious problem-solving alert( "hello" ) here]
colorDetails();
}

for some reason, in NN6, the page only loads into the iFrame properly when I have an alert in the line right before colorDetails(). When I don't have an alert there, the iFrame doesn't respond. anyone know what on earth could be causing this???

thanks!!!
beth

(edited by: tedster at 7:12 pm (utc) on May 17, 2002)

6:52 pm on May 17, 2002 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Beth, a little suggestion:

Why don't you chance the A tag to say <a href="javascript:loadDetails( 'fooBar' )"> instead? ;)

7:00 pm on May 17, 2002 (gmt 0)

10+ Year Member



thanks!!!!! such a no-brainer. duhhhhh.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month