Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mozilla & Javascript --- I Killed the back & forward buttons...

Status
Not open for further replies.

okiiyama

IS-IT--Management
Joined
Jan 3, 2003
Messages
269
Location
US
Due to some restictions with our website, I needed to create a redesign on parts of our website in javascript. Its pretty much a hack job, The bugs with it so far have been relatively simple to fix, but this new bug is a little bit trickier.

Anyways, in IE my script is working okay, but in mozilla, the back and forward buttons are not working. I guess for now the onlyl code I would be suspect of is:
Code:
var tr2 = document.createElement("tr");
			tbody1.appendChild(tr2);
			
			var td2 = document.createElement("td");
			td2.className = "ln_login_td_inner";
			td2.setAttribute("align", "center");
			tr2.appendChild(td2);
			
			var htmlStr= "<div><iframe id=\"tan_quicksearch\" src=\"[URL unfurl="true"]http://testing.testing.com/images/uploads//RECos/15000/ContentFiles/tan_form.htm\"";[/URL]
			htmlStr = htmlStr+" width=145 height=181 marginwidth=\"0\"";
			htmlStr = htmlStr+" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\"></iframe></div>";
			
			td2.innerHTML = htmlStr;

IE's innerHTML is a little picky, unless the string is wrapped in a div tag. The above example is creating an iframe element in a div element using innerHTML. The iframe works and the form works, but could this be the reason that the back and forward buttons are not working in mozilla?


Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top