I am calling following function in an IFrame. function baby_data(){ document.form1.get_data.value = 1; document.form1.noadd.value = 1; document.form1.submit(); } HTML: Following link to invoke this function. <a href="javascript://" onClick="baby_data()">Get Data</a> HTML: Its working in IE7 and FF but not in IE6. Whats wrong here. What should I change in the function so that it should work perfectly in IE6 too?
Problem Fixed. I replaced href="javascript://" with href="#" and its working. Does IE6 not support "javascript://" ?
Don't use the two slashes with a javascript href. href="javascript:" ....... okay href="javascript://" ..... not recommended