To remove them you could use

$(function() {
   $("br").remove();
});

but to find where they are is more difficult, as you could end up
removing key elements like the <head> tag itself. If it's placing it
where you don't want it to, maybe the script needs tweaking? Could you
possibly post it here, or even a link would be better? That would
enable me to help you a bit easier.

Mike


However in order to detect where they are in the document is more
difficult.

On Sep 14, 12:43 pm, paulswansea <sendtoswan...@hotmail.com> wrote:
> Hi,
>
> How can I remove an element before the body of the document, the long
> and the short of it is that a script I use places a <br> statement
> (amongst other things) dynamically into my web pages and based upon
> which browser I use, sometimes it places it inside the <head> and
> sometimes places it before the <head> and in some browsers not at all.
> I know it shouldn't, but it does.
>
> So basically, is there a way of removing the br statement if it exists
> before the body element?

Reply via email to