Jump to content

[SOLVED] Problem returning to an tag on a page in I.E


mark110384

Recommended Posts

Any ideas why this is working in FF but no in IE. And how to resolve this issue.

 

This tag is contained on showtopic.php

 

<a name="replybox"></a>

 

When a user sends a reply the script returns them to the appropriate page that they posted the reply on, and hopefully toward the bottom of the page of where the tag is placed.

 

header("Location: showtopic.php?topic_selected=$topic_id&pagenum=$page_no&error_id=$errornum#replybox");

The JS function looks in the URL for #reply like so

 

<script type='text/javascript'>
	var url = new String(window.location);
if (url.indexOf("#reply") > 0) {
	document.getElementById("replymessage").focus();
}
</script>


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.