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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript isn't displaying in my <div> tag

Status
Not open for further replies.

JennyW

Technical User
Mar 1, 2001
323
CA
Hi!

I have a page that has javascript in between the <body> </body> tags.

I put the code below in the body (raikyng helped me with this):

<script language=&quot;javascript&quot;>
//fuc can be any function name in your external js file...
func();
</script>


I placed this in between the head tags:

<script language=&quot;javascript&quot; src=&quot;filename.js&quot;></script>


My problems is this:

When I call the javascript to appear within a <div> tag it ends up in the wrong location on the screen (top left hand corner of the browser window).



When the script isn’t in a <div> tag it displays wherever I’ve placed it.



Does anyone know why this is happening?


Here's where I got the script:



Thank you,
Jenny
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top