Help me With javascript - Auto button!

Help me With javascript - Auto button!!!
I have a file 1.htm, this file writed as

1.html


<script>
function m() {
win=window.open("http://google.com ",“linhpr1”);
}
</script>
<input type=“button” onclick=m(); value=“button”>



I want to when run file 1.htm by FireFox.
I don’t need click the “button” then the page : http://google.com can open with tab name linhpr1.Like when I click to the “button”
Help me !
Thanks everyone very much!

Are you taking the same course as the chap in this thread? http://www.sitepoint.com/forums/javascript-15/forms-hashes-767365.html

i tried with body onload , but this function don’t run
<body onload=“m()”>

HELP ME!

Could you please post your full code as the snippets you posted don’t paint a clear picture.